Hi,
I have a kendo toolbar with multiple dropdowns and checkboxes to filter my datasource. What I want is when I submit my filter selections, if a spesific checkbox is checked, then datetime column of the grid will have this template:
"#= kendo.toString(kendo.parseDate(dates), 'dd/MM/yyyy') #"
If the checkbox not checked (or the page is just loaded with empty checkbox in default scenario) the column will have:
"#= kendo.toString(kendo.parseDate(dates), 'dd/MM/yyyy HH:mm') #"
as template.
I tried conditioning inside of grid but I didn't manage to obtain checkbox value. I tried writing a function outside the grid function but when I refresh grid data with:
var grid = $("#grid").data("kendoGrid");
grid.dataSource.data(reportData);
it only refresh the data inside grid, that does not trigger the template function.
How can I change the column template while refreshing the data according to that checkboxs value?
Greets Umutcan