You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: controls/multicolumncombobox/data-binding/client-side.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ The widget only shows data and so only the **Select** settings and `ServiceType`
44
44
45
45
To bind to a RadClientDataSource instance, set the `ClientDataSourceID` property to the ID of the client data source control.
46
46
47
-
RadClientDataSource is a wrapper over the Kendo UI DataSource as well. It is a separate control tag that provides some more features (like settings for server filtering or server paging). If you want to use [virtualization]({%slug multicolumncombobox/functionality/virtualization%}), you must use a RadClientDataSource. For all other cases, the built-in `WebServiceSettings` will serve the same purpose.
47
+
RadClientDataSource is a wrapper over the Kendo UI DataSource as well. It is a separate control tag that provides some more features pertainig to CRUD operations that are not relevant to the multi-column combo box.
48
48
49
49
>caption Example 2: Binding to a RadClientDataSource
Copy file name to clipboardExpand all lines: controls/multicolumncombobox/functionality/virtualization.md
+68-5Lines changed: 68 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,25 +19,86 @@ Virtualization requires:
19
19
*`Height` and `VirtualSettings.ItemHeight` to be set in pixel values.
20
20
* All columns to have `Width` set in pixels.
21
21
* Remote data binding.
22
-
* That the corresponding service provides the paging of the data. This means that a `RadClientDataSource` can be used for virtualization and it requires the following properties:
22
+
* That the corresponding service provides the paging of the data. This means that the following properties must be set:
23
23
*`PageSize` set according to the `Height` and `ItemHeight` (usually `((Height / ItemHeight) * 4)`)
24
24
*`EnableServerFiltering="true"`
25
25
*`AllowPaging="true"`
26
26
*`EnableServerPaging="true"`
27
27
28
28
>important RadMultiColumnComboBox is a server-side wrapper over the Kendo UI MultiColumnComboBox widget. The [Virtualization in Kendo DropDowns](https://docs.telerik.com/kendo-ui/controls/editors/combobox/virtualization) article explains in detail how virtualization works in the underlying widgets, and lists its behaviors, specifics and requirements. You should get familiar with it before using virtualization in RadMultiColumnComboBox.
29
29
30
-
## Example
30
+
## Examples
31
31
32
-
The following example shows how you can use virtualization with the service from the [Kendo Service repo](https://github.com/telerik/kendo-ui-demos-service). It also includes a [sample value mapper](https://github.com/telerik/kendo-ui-demos-service/blob/master/demos-and-odata-v3/KendoCRUDService/Controllers/OrdersController.cs) function that is optional.
32
+
The following examples show how you can use virtualization with the service from the [Kendo Service repo](https://github.com/telerik/kendo-ui-demos-service). It also includes a [sample value mapper](https://github.com/telerik/kendo-ui-demos-service/blob/master/demos-and-odata-v3/KendoCRUDService/Controllers/OrdersController.cs) function that is optional.
33
33
34
-
>caption Example 1: Virtualization in RadMultiColumnComboBox with RadClientDataSource plus a sample value mapper function.
34
+
>caption Example 1: Virtualization in RadMultiColumnComboBox. Includes a sample value mapper function
value = $telerik.$.isArray(value) ? value : [value];
78
+
79
+
for (var idx = 0; idx < value.length; idx++) {
80
+
data["values[" + idx + "]"] = value[idx];
81
+
}
82
+
83
+
return data;
84
+
}
85
+
</script>
86
+
````
87
+
88
+
You can achieve the same through a RadClientDataSource control. In such a case, you must set the web service settings (including the page size, and enabling the server operations) on the data source control instead of for the multi column combo box.
89
+
90
+
>caption Example 2: Virtualization in RadMultiColumnComboBox with RadClientDataSource plus a sample value mapper function.
0 commit comments