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

Row based multiple selection and batch edit

1 Answer 236 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 12 Jun 2017, 08:17 PM

I'm trying to setup a grid with Multiple, Row based selection in combination with InCell editing.  The issue is that a click of an editable cell causes selection of that row (and messes up existing selections).  I thought I could wire up my own click event and determine if a clicked cell was editable, then disable the selection, however I can't find a way to remove the select event that is connected to the containing table of the grid.

In trying to unbind the event, it appears since it was not bound via jQuery, jQuery can't unbind it.  Any other suggestions for how to accomplish this combination of functionality with the grid control?

 

Thanks in advance -   Greg

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 15 Jun 2017, 10:32 AM
Hello Greg,

Thank you for contacting us.

One solution for achieving the desired result would be to disable the built-in selection of the Grid and manually append the selected class to the TR elements within the click event handler (based on your condition). This will allow you to implement an entirely custom logic for the selection.

Another option would be to use a checkbox column as shown in the following dojo example:
If any further assistance is needed, please do not hesitate to contact us again.


Regards,
Konstantin Dikov
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Greg
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or