This is a migrated thread and some comments may be shown as answers.
Sharing datasources
1 Answer 4 Views
This is a migrated thread and some comments may be shown as answers.
Thomas Yanez
Top achievements
Rank 1
Thomas Yanez asked on 11 Aug 2014, 07:40 PM
Is there a way to share a datasource with multiple on-demand RadComboBox that are dynamically generated (not in a repeater)?  I guess I am asking if this should be possible, and I am just missing a clue?  If it is, is there an example that demonstrates a working version of this?

A simple version of what I am trying to accomplish would be to just populate a page with 10 pairs of linked on-demand RadComboBoxes (each pair consists of a "header" and a "detail" set of data) that use the same datasource (not a web service, just a straight SqlDataSource.)

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 14 Aug 2014, 03:20 PM
Hello,

Straight to your question - let's assume that you have two related RadComboBox control on your page. First RadComboBox will list the continents and the second RadComboBox will list the countries for the selected continent based on the first RadComboBox selection. In this case the data source for the second data source will filtered - this data source will contain only countries for the selected continent.

Then we add another pair of two RadComboBox controls on the page and  you bind these RadComboBox controls to the same data source controls used for  the RadComboBox controls in the first pair. Then the second RadComboBox control will be populated with the same filtered countries since the data source is already filtered by selecting a continent from the first RadComboBox in the fist pair.

Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Asked by
Thomas Yanez
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or