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

select rows solely by checkbox column

3 Answers 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 07 Sep 2015, 09:44 AM

Hello,

We use the following dojo: http://dojo.telerik.com/edihi

Our goal is to use the k-on-change event, which provides the selected row data in the callback function. This data then later is is reused in the parentscope in some selected rows confirmation scenario.​​

Our user should not be able to select multiple rows by clicking into the rows. Selection in our case should be only possible by selecting the checkbox in the first column. This then "poses" as if the uses clicked the whole row.

This behaviour is already achieved in the dojo(see link above). But we could not manage to disable the mouseclick selection into the rows(columns apart the chkbox column). If we omit <selectable: "row"> in the grid options, an exception results.

 

Can anyone give us an hint to a solution?

3 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 07 Sep 2015, 02:39 PM
Hi David,

Check the following code-library that illustrates how you can implement the functionality you are looking for.



Regards,
Viktor Tachev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
David
Top achievements
Rank 1
answered on 07 Sep 2015, 03:50 PM

Thank you for your feedback.

 We want to use the "k-on-change" handler. Your sample just maintaines a list of ids. But we need to have the data of the entire selected rows as it is provided with the "k-on-change" handler data parameter.

Can we achieve that behaviour with "k-on-change" ?

 

0
Viktor Tachev
Telerik team
answered on 08 Sep 2015, 02:59 PM
Hello David,

In order to implement the behavior you can use an approach similar to the one in the following example:

Note that the complete information about the selected item is available in the dataItem object.

Regards,
Viktor Tachev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
David
Top achievements
Rank 1
Share this question
or