I am adding a click function to a column containing a button like so
.Columns(columns =>
{
columns.Command(command =>
{
command.Custom("customedit").Click("openScanLines").Text("").HtmlAttributes(new { title = "View Scan Details"});
}).Width(75);
})
We have an option to save the grid options to be loaded a later point. So we use $("MyGrid").data("kendoGrid").getOptions() to get the options on the grid, Stringify it, and save it to a database Then we pull that JSON string from the database and use $("MyGrid").data("kendoGrid").setOptions(options) to load them. The problem is the "Click" function is always missing from the $("MyGrid").data("kendoGrid").getOptions(), resulting in the Click function no longer working when the option are then set. What's the deal? How can I retain the click function for these columns?