I would not recommend to the things this way. I'm thinking that you want to filter the data as user types, like:
Pe (typed) Results: Pedro Peterson ... If you want to do this, think twice, each typed letter will trigger an event that will iterate over a collection containing 'thousands'(like you said) of records. This is a VERY bad idea. I would recomend you to implement some pagination mechanism AND the filter mechanism, that way your first load will be faster and your filter will not iterate over the entire collection. Just my 2 cents, On Wed, Apr 29, 2009 at 5:51 PM, Nick <nick...@gmail.com> wrote: > > > Hello all. > > I have a DataGrid that is loading thousands of records. I would like to be > able to add some filter controls to the top of the screen enabling users to > filter the data. I would like the filtering to happen in real time as the > user types their query. > > I know this has been accomplished before I just can't seem to find the best > solution. > > Any thoughts on the best way to approach this? > > Thanks. > > Nick > > > -- /** * Pedro Sena * Systems Architect * Sun Certified Java Programmer * Sun Certified Web Component Developer */