How to set placeholder by template?

2 posts, 0 answers
  1. Federico
    Federico avatar
    6 posts
    Member since:
    Jan 2018

    Posted 17 Jan Link to this post

    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>

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1458 posts

    Posted 19 Jan Link to this post

    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.
Back to Top