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

Shared dataSource for two MultiSelect controls

2 Answers 131 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 2
Michael asked on 02 Sep 2015, 07:08 AM

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 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 04 Sep 2015, 07:36 AM
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!
 
0
Michael
Top achievements
Rank 2
answered on 04 Sep 2015, 07:50 AM

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

Tags
MultiSelect
Asked by
Michael
Top achievements
Rank 2
Answers by
Georgi Krustev
Telerik team
Michael
Top achievements
Rank 2
Share this question
or