Shared Complex Data Source

3 posts, 1 answers
  1. Nikita
    Nikita avatar
    31 posts
    Member since:
    Apr 2013

    Posted 06 May 2019 Link to this post

    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. Answer
    Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 08 May 2019 Link to this post

    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.
  3. Nikita
    Nikita avatar
    31 posts
    Member since:
    Apr 2013

    Posted 08 May 2019 in reply to Konstantin Dikov Link to this post

    Thank you Konstantin, I ended up doing something similar to what you suggested.
Back to Top