jaydata icon indicating copy to clipboard operation
jaydata copied to clipboard

Loses jaydata filters when using kendo´s own filter

Open lregueirom opened this issue 11 years ago • 1 comments

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

lregueirom avatar Apr 11 '14 21:04 lregueirom

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 };

gomski avatar Sep 24 '14 12:09 gomski