This is a migrated thread and some comments may be shown as answers.

Combobox Item Changes

3 Answers 63 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 27 Sep 2010, 04:18 PM
I have a combobox that uses load on demand.  When an item is selected, the selectedindexchanged event populates the second combobox.  When an item is selected in the 2nd combo box (everything works fine up to this point) and then the combobox loses focus, immediatetly the 2nd combobox reverts to the item at the beginning of the list and not the selected item.

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 28 Sep 2010, 06:58 AM
Hello Mike,

I hope the following demo will help you in this. Try the approach shown in the demo and see whether it suits your need.
ComboBox / Related ComboBoxes


Thanks,
Princy.
0
Mike
Top achievements
Rank 1
answered on 28 Sep 2010, 04:38 PM
It seems that the issue is the data that is in the Value property for the item.  The PK of the table is already in the Text property so I used the Value property to store an additional piece of data for that item.  But, after an item is selected and then focus is taken off of the combobox, the item would always change to the first occurance of the selected item's Value property and not remain on the item selected.
0
Simon
Telerik team
answered on 29 Sep 2010, 04:55 PM
Hello Mike Parzygnat,

This issue can occur if your Items have identical values. Please verify whether this is the case.

Kind regards,
Simon
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
Mike
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Mike
Top achievements
Rank 1
Simon
Telerik team
Share this question
or