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

RadCombobox data loading on selected index change of other radcombo box

2 Answers 161 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Meghna
Top achievements
Rank 1
Meghna asked on 03 Nov 2008, 12:33 PM
I want to load data in combo box on index change of other combo box. I am getting dataset but when binded to other radcombo box it is not reflecting values of new data set.

How to reflect data in radcombo box on selected index change of other combo box ?

2 Answers, 1 is accepted

Sort by
0
paul
Top achievements
Rank 2
answered on 04 Nov 2008, 05:10 PM
You could do that a couple of ways.

You could use ajax or a page postback. Can you post an example of your code so I can see how you are binding your data?
0
paul
Top achievements
Rank 2
answered on 04 Nov 2008, 05:29 PM
 combo.DataTextField = "Text";  
   combo.DataValueField = "Value";  
   combo.DataSource = links;  
   combo.DataBind(); 

All you need to do is put somthing similar to this in the "SelectedIndexChanged" event of the combo box that will be doing the triggering. Obviously you want combo to be the combobox to be data bound, and you will need to load a datasource.

Let me know if this helps or post more info so I can be more specific.


-Paul
Tags
ComboBox
Asked by
Meghna
Top achievements
Rank 1
Answers by
paul
Top achievements
Rank 2
Share this question
or