Hi,
I'm trying to reuse the same data from the datasource in on 3 different places on the webpage without recalling the web api.
I'm trying to get this piece of code to work, but without success.
Anyone sees what i'm doing wrong here?
I'm trying to add a filter where i a column should equal a value.
var
dataSource =
new
kendo.data.DataSource({
transport: {
read: {
url:
"/api/articles/getProductSpecifications"
,
dataType:
"json"
}
}
});
var
filters = dataSource.filter().filters;
var
new_filter = { field:
"groupId"
, operator:
"eq"
, value: 0 };
filters.push(new_filter);
$(
"#technicalspecs"
).kendoListView({
dataSource: dataSource.filter(filters),
template: kendo.template($(
"#template"
).html())
});