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/multiselect/functionality/grouping.md
-79Lines changed: 0 additions & 79 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,82 +8,3 @@ published: True
8
8
position: 4
9
9
---
10
10
11
-
12
-
# Grouping
13
-
14
-
**RadMultiSelect** can group its data source based on the **GroupByField** property.
15
-
16
-
The dropdown will show a header with the value of the field for each group, and a static header for the current group just below the column headers, so the user can see which group they are scrolling through regardless of the number of items in it.
17
-
18
-
You can customize the headers through their [templates]({%slug multiselect/functionality/templates%}).
19
-
20
-
Grouping requires binding the control to a web service, and grouping is performed on the client over the returned flat data.
Web service binding creates a Kendo DataSource and applies the grouping settings to it automatically. You can create your own Kendo DataSource instance and provide local data to it. In such a case, you must also provide the grouping settings to the data source.
41
-
42
-
>caption Example 2: Grouping with local data and a Kendo DataSource
43
-
44
-
````ASP.NET
45
-
<script>
46
-
function OnLoad(sender, args) {
47
-
var data = [
48
-
{ id: 1, name: "one", color: "red" },
49
-
{ id: 2, name: "two", color: "green" },
50
-
{ id: 3, name: "three", color: "blue" },
51
-
{ id: 4, name: "four", color: "red" }
52
-
];
53
-
54
-
var kendoDs = new kendo.data.DataSource({
55
-
data: data,
56
-
//clone the original group settings from the server
Every `TagMode` has a specific `TagTemplate` value. You can control the content of the rendered tags by setting a custom a [TagTemplate]]({%slug multiselect/functionality/templates%}#tag-template) value.
0 commit comments