开发者

How correct use terelik getGridMasterTableView().filter() methot on javascript on client side?

开发者 https://www.devze.com 2023-03-28 11:17 出处:网络
I use telerik radGriD funcrion on javascript client-side: getGridMasterTableView().get_filterExpressions().clear(); - clear array of filter expression.

I use telerik radGriD funcrion on javascript client-side:

    getGridMasterTableView().get_filterExpressions().clear(); - clear array of filter expression. 

    getGridMasterTableView().filter(fieldName, strData, GetExpressionValue(fieldExpression));开发者_如何学运维 - add elenent in array filter expression.

when I call this getGridMasterTableView().filter(fieldName, strData, GetExpressionValue(fieldExpression)) method two times, when fieldName allways the same, the method getGridMasterTableView().get_filterExpressions() in watch shows that it simply rewrites element but I need that it add new element. How resolve it?


Are you attempting to apply two filters on the same column? From the sound of things you are filtering once, and then trying to filter that same result once more. You can only have one filter on a column at a time, so when you call the filter() method the second time it just removes the old filter and filters according to the last filter() call.

For more information regarding client-side filtering I recommend looking over this documentation article.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号