开发者

Extjs grid Filter

I am filter on a grid and I am trying to run the filter on it. I want o run the filter from code when a user selects a开发者_如何学Python value from a drop down else where in the page.

I see that grid.getFilter('dataIndex').setActive(true) is setting the filter active but i am not sure how to set the value. There is a methid called setValue() but it is a private methos. Is there any way i could do it.

Thanks, SS


You can filter the grid's store easily..

grid.getStore().filter('field', 'valueToSearchFor');


PagingToolbar may be just what you are looking for. Alternatively, I've come across cases where I could set the filtration params as baseParams and then blow that out when I'm done with it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜