Actually I am not very clear of the behavior of multiple selects because seems a bit quirky. Sometimes it leave the class k-selected-state of the previous row and other times not.
8 Answers, 1 is accepted
Such functionality is not supported out of the box, but you could achieve it using custom code. For example:Please notice that in this case you need to set to the Kendo UI Grid selectable: false property. For convenience, I created a simple example, which illustrates such approach in action.
the Telerik team
i followed your example and indeed it work as expected. but, how can we actually get the data in the selected item/s? i am a newbie trying to learn a wonderful tool. can you help me out?
this is my listView template..
there is a total price on my page and i would like to add the basePrice there when selected and subtract also when deselected.
i would also like to capture the id as params to the next page. how can i achieve all this in grails?
thank you in advance.
You can get selected rows in your grid using the myGrid.select()-method. This will return an array of rows. You can get IDs by iterating over the rows.
To get the model behind the row, you can use the dataItem()-method, using the corresponding row as argument.
This worked great except i lost pagination and vertical scrolling. I tried js and css to add scrolling but it didnot work. Can you please help me with that?
I was not able to reproduce the same issue on my end.
I made an example using the same approach for selection, and the Grid is still pageable and scrollable:
If additional assistance is needed, please modify the example in order to reproduce the issue and I will gladly assist.
Telerik by Progress
Hi, I'm also trying to the same thing, except that I also like to have drag-selections (ie. selecting multiple rows via mouse drag), similar to when grid.selectable is set to "multiple, row". How do I achieve this?
I am afraid that it is not possible to combine this custom row and built-in multiple cell selection with the current way that the kendo selectable is implemented.
If pressing the Ctrl key is not acceptable, perhaps you can utilize the CheckBox selection instead?