Setting DataSource property on RadComboBox at runtime

1 Answer 286 Views
ComboBox General Discussions
Michael
Top achievements
Rank 1
Michael asked on 06 Oct 2021, 05:04 PM

 

I am trying to set the datasource property of a radcombobox in the selectedindexchanged eventhandler of another radcombobox.

I am getting this error. 

 

 

How do I accomplish this?

Michael
Top achievements
Rank 1
commented on 07 Oct 2021, 05:37 PM

I am able to set the DataSource property in PageLoad event. Because the values in this dropdown depend on the users selection in the country dropdown, I need to set the state dropdown datasource property in the country dropdown's SelectedIndexChanged event handler. It is not allowing me to do that.

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 08 Oct 2021, 06:59 AM

Hello Michael,

You can see how to implement cascading functionalities between several RadcomboBox controls here:

 

Please, give this approach a try and let me know if you need further assistance on this matter after that.

Regards,
Vessy
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
ComboBox General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or