jaydata
jaydata copied to clipboard
Loses jaydata filters when using kendo´s own filter
with code:
var ds = ctx.Product
.filter(function (product) { return product.Active; })
.asKendoDataSource();
when add filter using kendo´s dataSource
ds.filter({ field: "Name", operator: "startswith", value: "abc" });
lost a filter added with jaydata. I solved it, move code from line 439
if (withInlineCount) {
q = q.withInlineCount();
}
to line 505 on file ...\jaydata\jaydatamodules\kendo.js
Hi,
try to add your filters after creating the kendodatasrc. I am using it and works.
var infoDataSrc = t.fisCtx.AllFlightInfos.asKendoDataSource({ pageSize: 100 }); infoDataSrc._filter = { field: "FlightId", operator: "eq", value: e.data.Id };