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

Shared Complex Data Source

2 Answers 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nikita
Top achievements
Rank 1
Iron
Nikita asked on 06 May 2019, 05:37 PM
I'd like to use a shared DataSource control that encapsulates a complex data object with several enumerable properties. I'd like to bind each property to a separate drop down list. Is it possible to define one data source but several schemas, one for each drop down list? Values of each drop down list affect the state of the data object and it take 1 server operation to obtain the data, that is why I want to use a single shared DataSource.

2 Answers, 1 is accepted

Sort by
0
Accepted
Konstantin Dikov
Telerik team
answered on 08 May 2019, 09:47 AM
Hello Nikita,

The DataSource will pass to the widgets the entire data that is available and I have to say that it is not possible to set specific inner collection to specific widgets. However, if you want to make only one request for the data, you could use one DataSource for getting it and within the "RequestEnd" event, get the data and populate the DataSources of each widget, using their "data" method:
Let us know if other questions on this matter arise.


Regards,
Konstantin Dikov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Nikita
Top achievements
Rank 1
Iron
answered on 08 May 2019, 03:50 PM
Thank you Konstantin, I ended up doing something similar to what you suggested.
Tags
General Discussions
Asked by
Nikita
Top achievements
Rank 1
Iron
Answers by
Konstantin Dikov
Telerik team
Nikita
Top achievements
Rank 1
Iron
Share this question
or