I created a separate class in .js file to create grid for me,my class is simple as following:
function createDynamicGrid(chartId, source, column, titleOfGrid,onChange) {
chartId.kendoGrid({
toolbar: titleOfGrid,
dataSource: {
data: source,
},
change: onChange,
height: 350,
scrollable: true,
sortable: true,
filterable: true,
columns: column,
noRecords: {
template: "No data"
},
});
}
in my view(.Cshtml) when i call this and pass parameters i get the chart but click event does not trigger,here in cshtml:
createDynamicGrid(chartId, source, column, titleOfGrid,onChange);
function Change(e){
//i want to get e result here,but i cant
}