admin管理员组

文章数量:1353605

I'm using kendo ui grid in razor, in the declaration of the grid I have this sentence:

.Events(ev => ev.Change("rowClick"))

This rowClick event is executing when I click on a row.

Ones the user do the first click, I activate a button and I don't need the event anymore.

How can unbind the rowClick method associated with the Change event in javascript?

My grid object:

var grid = $("#grid").data("kendoGrid");

I'm using kendo ui grid in razor, in the declaration of the grid I have this sentence:

.Events(ev => ev.Change("rowClick"))

This rowClick event is executing when I click on a row.

Ones the user do the first click, I activate a button and I don't need the event anymore.

How can unbind the rowClick method associated with the Change event in javascript?

My grid object:

var grid = $("#grid").data("kendoGrid");
Share Improve this question edited Apr 28, 2016 at 17:44 BENARD Patrick 31k16 gold badges102 silver badges108 bronze badges asked Oct 24, 2013 at 14:11 rgx71rgx71 8676 gold badges21 silver badges32 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 8

Fiddle : http://jsfiddle/Sbb5Z/603/

function onChangeSelection() {
   alert('oh my god !');
    $('#grid').data("kendoGrid").unbind('change');    
}

It's what you want...

本文标签: javascriptUnbind Kendo UI Grid EventStack Overflow