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

Multiselect with MVVM Set value dynamically not fired

1 Answer 97 Views
MultiSelect
This is a migrated thread and some comments may be shown as answers.
santhosh
Top achievements
Rank 1
santhosh asked on 15 Dec 2014, 05:20 AM
Dear sir,
          i'm using kendo ui multiselect with MVVM and 
at the first time i'll set the value externally via button click its working fine
but i'm afraid when i'd typed value wrongly which is not in data source then i'd set the value which is not fired
but the value is updated in view Modal but data not shown in Widget 
please clarify me where i'm wrong
i'd attached the zip file which contains work around and the video for this error

thanks in advance,
santhosh.B

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 16 Dec 2014, 04:52 PM
Hello santhosh,

In general, when the user types something he/she filters the data source, which will not be cleared until the next popup open. If you try to set value it will be ignored as the data source is empty. The only way to handle this case is to clear the applied filter. One possible way is to wire the close event of the widget and clear the filter:
close: function(e) {
    e.sender.dataSource.filter({});
},
Check the updated html page.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
MultiSelect
Asked by
santhosh
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or