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

change event column exclusions

1 Answer 123 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JAN
Top achievements
Rank 1
JAN asked on 16 Jul 2013, 03:31 PM
I have a grid with a change event. When the change event is invoked a redirect takes place towards another page.
I want to add a column with a checkbox which does not cause the change event to be fired. The other columns must still cause the change event to be fired.
How can this be done?

The same is valid for the listview. I have a listview with a client template and I need to show a checkbox which doesn't cause the change event to be fired.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 17 Jul 2013, 09:23 AM
Hi Jan,

Clicking on a checkbox inside the Grid or the ListView does not trigger selection change.

If you want to prevent selection change from a Grid checkbox column cell, you can use the dataBound event handler:

function onGridDataBound (e) {
    $(".chk").parent().on("mousedown", false);
}

Where "chk" is the CSS class of the checkboxes and parent() is the corresponding table cell.

Doing the same for the ListView does not make sense. You can disable ListView selection, if needed.

Regards,
Dimo
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
JAN
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or