Handling Active and Inactive list items

2 posts, 0 answers
  1. Mark
    Mark avatar
    5 posts
    Member since:
    Aug 2014

    Posted 09 Mar 2015 Link to this post

     I have a list (db table) of contacts. Let's say there are 5000 contacts in the table.  200 flagged active and the reminder flagged inactive.   I'm using a combo box to select/change the contact on a screen that edits an activity.  This all works great.  Since I don't want have all 5000 contacts transferred to the dom I'm filtering the for only active contacts.  This also works great.   The problem comes when the edit screen loads and contact has been marked as inactive.  In this case I get the value instead of the name.  Has anyone solved for this case?
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 11 Mar 2015 Link to this post

    Hello Mark,

    The ComboBox displays the value as a text on load, because it considers it as a custom one. In other words, when source is loaded and the current selected value is not there then it will be considered as a custom one. If you would like to avoid this behavior, then you will need to set the selected value and text using the corresponding value and text options. Here is a Dojo demo (http://dojo.telerik.com/@ggkrustev/AQudA) that demonstrates this approach.

    Regards,
    Georgi Krustev
    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