oortcloud_domicile
oortcloud_domicile

Reputation: 850

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

Upvotes: 0

Views: 3077

Answers (2)

John
John

Reputation: 23

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.

Upvotes: 0

JamesHalsall
JamesHalsall

Reputation: 13475

You can filter the grid's store easily..

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

Upvotes: 1

Related Questions