PDA

View Full Version : GridPanel List Filter



taxidriver
17 Dec 2010, 5:34 AM
I have a GridPanel where there is a column with ListFilter option.After setting specific list options as filter values it works perfectly.
It would be desirable to check dynamically for new values in the specific column(e.g. after new inserting) and change automatic the Filter List options.

Any idea?

christian130
17 Dec 2010, 6:13 AM
have u tried with the renderer? have u checked the examples? could u post some of your code? printscreens can help also

taxidriver
17 Dec 2010, 10:30 AM
What we would like to do actually, is to be able to load the grid filter menu through a custom store or array.
Or at least, be able to create custom items, not at design / definition time, but at run time (i dont want them to be fixed and pre -defined).
Grid filtering is something we would like to implement in our application, but since this is a "plugin", there is no info for this on the official documentation.
Is there any documentation on how i could do this?
Or at least, some links to such an example?

FCTim
17 Dec 2010, 11:16 AM
What we would like to do actually, is to be able to load the grid filter menu through a custom store or array.


Is this what you're looking for?
http://dev.sencha.com/deploy/dev/examples/docs/?class=Ext.ux.grid.filter.ListFilter&member=store

taxidriver
17 Dec 2010, 11:28 AM
Sort of, what i would really like to have is something in between.
im sure you all used Microsoft Excel. If you ever used its data filter feature, what it does is that it drops down a list of values
that is the equivelant of a "distinct" select running on the sql server, only it is done LOCALLY.
Could i achieve something like this? Right now, i'm in the position to prepare my own custom store of distinct - unique values , depending on the column, but how could i use this as an input / source for the drop down menu about to be dropped when the user clicks the header of a column?

FCTim
17 Dec 2010, 12:56 PM
Sort of, what i would really like to have is something in between.
im sure you all used Microsoft Excel. If you ever used its data filter feature, what it does is that it drops down a list of values
that is the equivelant of a "distinct" select running on the sql server, only it is done LOCALLY.
Could i achieve something like this? Right now, i'm in the position to prepare my own custom store of distinct - unique values , depending on the column, but how could i use this as an input / source for the drop down menu about to be dropped when the user clicks the header of a column?

I've never used this myself but it looks like this could do it for you.

http://dev.sencha.com/deploy/dev/docs/?class=Ext.data.Store&member=collect

You could just pass that into the options parameter of the listFilter perhaps?