Hello,
I used Kendo Grid with the search toolbar on data from a service call. My data is displayed correctly and my select function works fine.
But when I try to search in toolbar, the results will not be filtered. Is this a problem with my service call?
var
settingsSelectable =
"multiple, row"
;
var
settingsColSelectable = [
{
selectable:
true
,
width: 75,
attributes: {
"class"
:
"checkbox-align"
,
},
headerAttributes: {
"class"
:
"checkbox-align"
,
}
},
{
title:
"Product Information"
,
template:
"<div>#: Name #</div><div>Id: #: Id # | ArtNo: #: ArtNo #</div>"
,
attributes: {
"class"
:
"select-#: Id #"
,
}
}
];
var
grid = $(
".all-products"
).kendoGrid({
dataSource:
new
kendo.data.DataSource({
transport: {
read:
function
(options) {
LoyaltyCategoryService.GetProducts().then((res) => {
options.success(res.data.Data);
preselect();
})
}
}
}),
toolbar: [
"search"
],
columns: settingsColSelectable,
height: 800,
selectable: settingsSelectable,
change: onChange,
dataBound:
function
() {
preselect();
}
});
Maybe someone can help me! Have a great day!