Handling Active and Inactive list items

Mark

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?

Georgi Krustev

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.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.