I have a kendo grid with some custom editors, one is a multiselect. I have a cshtml file for the editor that looks like so:
It uses the "bindto" which is data gotten from ViewData that is
created when the page is requested. Everything works fine just as it
should, no problems there.
The problem is I have been trying to implement a "select/deselect all"
button using various implementations to no avail. I have a suspicion
that it's because I use "bindto".
This is some of the examples I have tried:
I can get the button to select everything correctly, but when everything is selected and I try to save the entry on the grid, the action is not fired. Nothing happens and the selection resets. Still works if I select manually.
What is going on? Full code for the custom editor: