Shared dataSource for two MultiSelect controls

3 posts, 0 answers
  1. Michael
    Michael avatar
    26 posts
    Member since:
    Dec 2010

    Posted 02 Sep 2015 Link to this post

    Hello,

    I have a page with 2 kendoMultiSelect controls that have the same dataSource. When I start filtering in the first one, the second one loses all its selected values and vice-versa. Is this by design? If so, is it possible to have a shared dataSource for MultiSelect controls? Thanks for your help.

    Kind regards,

    Krisztian

  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 04 Sep 2015 Link to this post

    Hello Krisztian,

    I am afraid the widgets cannot use shared datasource when filtering is enabled. Basically, the selected items are related to the content of the datasource. If it is filtered not by the widget itself, it thinks that the source is updated and the selected items will be updated accordingly.

    What I would suggest you is to use a separate source for the widget. Thus the filter state will be preserved too.

    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Michael
    Michael avatar
    26 posts
    Member since:
    Dec 2010

    Posted 04 Sep 2015 in reply to Georgi Krustev Link to this post

    Hi Georgi,

    that is exactly what I ended up doing. I use a separate dataSource for the multiSelect controls now. The odd thing is that it worked before switching form kendo UI core to kendo UI profressional.

    Kind regards,

    Krisztian

Back to Top