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

3 posts, 0 answers
  1. Todd
    Todd avatar
    8 posts
    Member since:
    Dec 2012

    Posted 09 Jan 2015 Link to this post

    Been working on it here http://jsfiddle.net/qy85emc8/8/ Can't figure it out.
  2. Daniel
    Admin
    Daniel avatar
    2118 posts

    Posted 13 Jan 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Todd
    Todd avatar
    8 posts
    Member since:
    Dec 2012

    Posted 13 Jan 2015 in reply to Daniel Link to this post

    Just in time for me to get it fixed before my demonstration to management. Thanks Daniel! You just made my day start off great!
Back to Top