Let's say I have initialized a kendogrid like this.
$('#' + grids[i].gridName).kendoGrid({
columns: [{
width: 50, "template": "<input type=\"checkbox\" />"
},
{
field: "Name",
title: "Name"
}]
}).css('width', '100%');
How can I add a databound function to the already existing kendoGrid?
The following does not work.
$("#grid").data("kendoGrid").dataBound = function(){
//some code
}
Try this:
var grid = $("#grid").data("kendoGrid");
grid.bind("dataBound", function(e) {
//your code here
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With