This is a migrated thread and some comments may be shown as answers.

How to set placeholder by template?

1 Answer 248 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Federico
Top achievements
Rank 1
Federico asked on 17 Jan 2018, 09:43 AM

How to set placeholder by template?

<select id="a"
 data-role="multiselect"
 data-placeholder="template"
 data-value-primitive="true"
 data-text-field="name"
 data-value-field="id"
 data-bind="value:  valDoc
source: sourceDoc">
 </select>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 19 Jan 2018, 08:28 AM
Hello Federico,

The MultiSelect's placeholder does not support templates. As mentioned in the documentation, the value of this configuration option can only be a string, for example:
data-placeholder="Select an item...'"

Regards,
Ivan Danchev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
MultiSelect
Asked by
Federico
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or