Hello, I have a kendo grid with a column that displays as List<string> using a client template:
columns.Bound(u => u.CostCentreNames)
.ClientTemplate("#= costCentreList(data) #")
.Filterable(true)
.Sortable(false);
function costCentreList(item) {
var html = "";
for (var i = 0; i < item.CostCentreNames.length; i++) {
if (item.CostCentreNames[i] != 'undefined') {
html += "<div>";
html += item.CostCentreNames[i];
html += "</div>";
}
}
return html;
}
CostCentreNames is a List<string>.
Is it possible to filter based on the values of those strings? i.e. show only rows where that column contains the value '100'. could you provide an example if so. Thx!
columns.Bound(u => u.CostCentreNames)
.ClientTemplate("#= costCentreList(data) #")
.Filterable(true)
.Sortable(false);
function costCentreList(item) {
var html = "";
for (var i = 0; i < item.CostCentreNames.length; i++) {
if (item.CostCentreNames[i] != 'undefined') {
html += "<div>";
html += item.CostCentreNames[i];
html += "</div>";
}
}
return html;
}
CostCentreNames is a List<string>.
Is it possible to filter based on the values of those strings? i.e. show only rows where that column contains the value '100'. could you provide an example if so. Thx!