DropDownList - Display Text using multiple fields

2 posts, 0 answers
  1. Elliot
    Elliot avatar
    59 posts
    Member since:
    May 2012

    Posted 13 Aug 2015 Link to this post

    I have a DropDownList bound to an array that has fields for firstName and lastName.  I would like the display text to be firstName + " " + lastName.  How would I go about doing this?  I am not sure it supports templates and it seems data-text-field can only be set to one field.
  2. Plamen
    Admin
    Plamen avatar
    2731 posts

    Posted 14 Aug 2015 Link to this post

    Hi,

    You can use template in case you want to apply template for the DropDown items and value template in case you want to apply it on the selected item text that.

    Regards,
    Plamen
    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
Back to Top