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

(C# MVC)Kendo MutliSelect - setting values that are not in the list when page loads

1 Answer 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Deanna
Top achievements
Rank 1
Deanna asked on 30 Mar 2014, 12:45 PM
Hi support team,

How do I set values to mutli select control when those values are not currently available in the list?

I have a mutli-select control that is initially bind to 200 data items coming from the controller when page loads (There are more than 2000 available items) and allow user to type and search for result. The page is not using AJAX and we can't use AJAX for a particular purpose.

When the page reloads, I manually set the value to the multi-select control if it was previously selected by user to retain the selected values. However, I am not able to set values that are not in the initial 200 data items. (i.e. User searched for the item and refreshed the page)

Since there are more than 2000 available items and this will increase in the future, showing all data items on initial load is not an option for us. Could you please suggest what we can do? 

Thanks


1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 01 Apr 2014, 10:57 AM
Hello Deanna,

In general, MultiSelect widget cannot select values which are not present in the data source. On possible solution is to disable initial binding and thus passing only the selected data items to the widget. Thus it will not make request to get the data initially and still be able to show all selected items. I would suggest you check this help topic showing how to accomplish this. If you are using the JavaScript widget only then refer to this help topic.

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
General Discussions
Asked by
Deanna
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or