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/templates.md
+116Lines changed: 116 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,3 +7,119 @@ tags: template,client
7
7
published: True
8
8
position: 1
9
9
---
10
+
11
+
# Templates
12
+
13
+
**RadMultiSelect** uses [Kendo UI Templates](https://docs.telerik.com/kendo-ui/framework/templates/overview) to provide full control over the rendering of items, selected values, and popup headers. The control supports the following templates:
14
+
15
+
-[Templates](#templates)
16
+
- [Item template](#item-template)
17
+
- [Tag Template](#tag-template)
18
+
- [Header Template](#header-template)
19
+
- [Footer Template](#footer-template)
20
+
- [No Data Template](#no-data-template)
21
+
- [See Also](#see-also)
22
+
23
+
>caption Figure 1: Structure of the popup and where you can use templates.
You can see the source code used for producing the image in [RadMultiSelect Templates Live demo](https://demos.telerik.com/aspnet-ajax/multiselect/customizingtemplates/defaultcs.aspx).
28
+
29
+
>caption Example 1: Sample use of templates in RadMultiSelect.
This is the template that is rendered in each individual column. It receives the `data` parameter that points to the dataItem for the corresponding item, so you can use all its data source fields
This is the [https://docs.telerik.com/kendo-ui/api/javascript/ui/multiselect/configuration/tagtemplate](https://docs.telerik.com/kendo-ui/api/javascript/ui/multiselect/configuration/tagtemplate) that manages the way the tag of a MultiSelect is rendered. It is not bound to data and is static HTML.
100
+
101
+
## Header Template
102
+
103
+
A [https://docs.telerik.com/kendo-ui/api/javascript/ui/multiselect/configuration/headertemplate](https://docs.telerik.com/kendo-ui/api/javascript/ui/multiselect/configuration/headertemplate) that shows above all items. It is not bound to data and is static HTML.
104
+
105
+
>caution The header content should be wrapped with an HTML tag if it contains more than one element. This is applicable also when header content is just a string/text.
106
+
>
107
+
108
+
## Footer Template
109
+
110
+
This is the [https://docs.telerik.com/kendo-ui/api/javascript/ui/multiselect/configuration/footertemplate](https://docs.telerik.com/kendo-ui/api/javascript/ui/multiselect/configuration/footertemplate) used to render the footer. The footer is re-rendered on every change of the Data Source. The context of the footer template is the underlying Kendo Widget itself that you can access through the `instance` argument.
111
+
112
+
## No Data Template
113
+
114
+
This [template](https://docs.telerik.com/kendo-ui/api/javascript/ui/multiselect/configuration/nodatatemplate) is shown when the data source is empty or the current filter operation returned no results.
115
+
116
+
>caution When the NoDataTemplate is defined, the MultiSelect always opens the popup element.
0 commit comments