I am trying to test some example code that I have found and one of these samples clears the selection if a grid has detail sections, so only one line is highlighted at a time.
The example is below..
function onRowSelect(e) {
var selected = this.select();
$('.k-grid tbody>.k-state-selected').not(selected).removeClass('k-state-selected')
}
and on the grid using
.Events(e => e.Change("onRowSelect()"))
I am using MVC and the latest builds (trials). I get the error when the page loads Uncaught TypeError: this.select is not a function
Can anyone point me to why this error is occurring?
从更改事件处理程序定义中除去括号,因为当前它将在初始化期间调用:
.Events(e => e.Change("onRowSelect"));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.