I've been messing around with this MultiSelect widget. It has been a little buggy after the Q3 2015 release. I'm saying so because this is not the first time I'm seeing and reporting a problem with this widget.
So, If you please go to this link - http://dojo.telerik.com/OSoTU/4
- Type "cha" in the multiselect control, and wait for 2 seconds to see the matching products,
- Go ahead and choose one item from the products,
- Now, hit "Populate Items" button to add one more item to the widget.
It does not add it for the first time, but you can see the textbox has updated values. Now, if you hit the button again, it will show you the right items in the widget.
And this behavior can only been seen If serverFiltering is active.
6 Answers, 1 is accepted
The described behavior is actually expected, because you cannot update the datasource data manually when it uses a server operations (filtering, paging and etc). If you would like to update the data, then you will need to update the whole data source:
Please tale a look at this - http://dojo.telerik.com/UkINe? This is same source code but with the last version of kendo library. It works fine here. This seems to be a very common behavior people would want to use. I was using it to choose/select people from an active directory, and I have many cases where user would want to copy/pull people from existing/pre-defined sets.
Thank you for the repro demo. I agree that it has scenarios that require to update the source and select custom values. In that case, you will need either to:
- return the "fake" item from the server
- update the whole DataSource, as I've shown in my previous reply
The approach shown in your demo has worked by chance. It has never been intended to work. I am afraid that you will need to use one of the suggested approaches if you would like to update the source. The referenced implementation has never been officially supported and you will need to refrain from using it.
In my project i am using v2017 of kendo.all.min.js. but in case of kendo multiselect with server filttering , i am facing a issues while a adding custom data into the datasource. if i change a the version 2015 the multiselect are working bu other things are not working. so i want to remove mutiselect from kendo.all.min.js (v2017) and create a separate kendo.multiselect.min.js file with v2015
As discussed in this public thread, mixing components from different Kendo UI versions is something we don't officially support. Even after implementing the described functionality all the components seem to work properly, we do not recommend the usage of such mixture.
Please, let's keep the communication consistent and continue the discussion in the above-linked forum thread.