Hi I'm just doing a simple task which is trying to get the selected row. I followed all the code stated in the demo site of the grid but unfortunately firebug is giving me an error saying that "this.select()" is not a method.
Here is the event for my grid.
>>>
.Events(events => events.Change(@<text> function(e){ OnChanged(e); } </text>))
And here is the script
>>>
function OnChanged(e) {
var selected = $.map(this.select(), function (item) {
return $(item).text();
});
As you can see I've used the @<text> in Change event because if I only specify the function name as string like this one
Events(events => events.Change("OnChanged")
Firebug is complaining that Onchanged can't be found.
Here is the event for my grid.
>>>
.Events(events => events.Change(@<text> function(e){ OnChanged(e); } </text>))
And here is the script
>>>
function OnChanged(e) {
var selected = $.map(this.select(), function (item) {
return $(item).text();
});
As you can see I've used the @<text> in Change event because if I only specify the function name as string like this one
Events(events => events.Change("OnChanged")
Firebug is complaining that Onchanged can't be found.