PDA

View Full Version : checkboxgroup above GridPanel



Matey
27 Sep 2011, 7:57 AM
Hi all, apologies if this is posted in the wrong forum, it's my first post here.

I am using v3.4. and am using the GridPanel to display my records. I have filters set up in the header records but now want to create a group of checkboxes somewhere above the GridPanel that will be used to filter the status column. My current approach is to listen for onclick on the checkboxes and get values and apply a filter e.g.

store.filter([{ property: 'Status', value: '0' }, { property: 'Status', value: '0'}]); this should be setting a filter to return only the statuses I have input but is and'ing the filters so nothing gets pulled back.

I am after any feedback either to get my current approach working or if there is an easier/better way to do this?

thanks for any help

skirtle
28 Sep 2011, 1:05 AM
This is an ExtJS 4 forum so not really the right place. The forums are grouped by product and version.

To get OR rather than AND you could either try building a regex as the value or you could switch to using filterBy() instead.