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

Any way to change the "data-placeholder" value to change the text of an empty control?

2 Answers 394 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Todd
Top achievements
Rank 1
Todd asked on 09 Jan 2015, 05:23 PM
Been working on it here http://jsfiddle.net/qy85emc8/8/ Can't figure it out.

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 13 Jan 2015, 12:26 PM
Hello Todd,

The placeholder can be changed by using the placeholder configuration option. Currently, there isn't a public API for dynamically changing the placeholder dynamically but if it possible to achieve this by changing the options and using the internal _placeholder method:
var multiselect = $("#kendoMultiSelect").data("kendoMultiSelect");
multiselect.setOptions({
 placeholder: "New Placeholder"
});
multiselect._placeholder();
to immediately update the shown value.

Regards,
Daniel
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Todd
Top achievements
Rank 1
answered on 13 Jan 2015, 02:04 PM
Just in time for me to get it fixed before my demonstration to management. Thanks Daniel! You just made my day start off great!
Tags
MultiSelect
Asked by
Todd
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Todd
Top achievements
Rank 1
Share this question
or