Thanks! 

I had a feeling that was the case. I can paginate no problem BUT I want to 
ensure the filter does iterate over the entire collection. Being that each page 
would essentially have to go back to the server I am not sure the "real time as 
the user types" functionality is going to be feasible beyond the users current 
page. I may have to implement this as a web service call.

Then again I could use a combination of both. Load a manageable amount of 
records per page, enable as you type filtering, and then add a "search entire 
database" option to the filter controls.

Does anyone have any good examples of this filter as you type functionality? 

Thanks again. 

Nick  


--- In [email protected], Pedro Sena <sena.pe...@...> wrote:
>
> 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...@...> 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
> */
>


Reply via email to