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
1 Answer
Reset to default 8Fiddle : 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
版权声明:本文标题:javascript - Unbind Kendo UI Grid Event - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743934456a2564433.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论