29 Mar 2007 10:46 AM #1
Client-side grid filtering (Newbie)
Hi everyone - I am looking for a client-side filtering functionality for the grid - exactly like on http://www.vonloesch.de/node/23 - text box which filters rows dynamically when typed into.
Is that possible and can someone please give detailed example (newbie :oops: )?
29 Mar 2007 11:21 AM #2
Here's how to drop a filter field into the paging toolbar, which you may find useful.
Beyond that, you'll want to look into the built-in filter() methds of the Store class. It's not documented so you'll need to crack open /source/data/Store.js and do some detective work yourself.Jeff Howden
Ext JS - Support Team Volunteer
Any and all code samples that are authored by me and posted on the Ext forums or website are hereby released into the public domain and I release anyone or entity of liability by using said code samples unless explicitly stated otherwise.
Opinions are mine and not necessarily endorsed by Ext, LLC. Please do not contact me directly for assistance unless requested by me.
24 Apr 2007 10:17 AM #3
Where is the post
The link is dead above, I would like to see how this would be done. ( making one of my combo boxes a filter for the grid "client side")
24 Apr 2007 10:43 AM #4
25 Apr 2007 5:03 AM #5
Client side filtering
Tim, thanks for the quick reply!
This works perfectly if you are working with server side paging and filtering. Although, I am using client side paging and would like to also use client side filtering. Is there an easy way to change the code you posted so it will handle client side filtering of the grid with my drop down combo boxes that I have located in the paging footer?
25 Apr 2007 7:49 AM #6
I haven't really looked at the code, but I would think it would be simple to change that handler (e.g. combo select or filter btn) to call store.filter() rather than triggering a store.load with the filter expression.
25 Apr 2007 8:36 AM #7
Maybe my quicksearch example is what your looking for.
It filters the current page (or the entire store) of a grid, while your typing in the box. (It would be trivial to only filter on <enter>) From what i've read in the original post this the example that you want.
By trbs in forum Ext 2.x: Help & DiscussionReplies: 17Last Post: 3 May 2007, 3:21 PM
By genius551v in forum Ext 1.x: Help & DiscussionReplies: 10Last Post: 5 Jan 2007, 8:41 AM
By zquirm in forum Community DiscussionReplies: 2Last Post: 22 Dec 2006, 8:15 PM
By qiuyl in forum Community DiscussionReplies: 1Last Post: 19 Dec 2006, 1:26 PM
By Choleriker in forum Community DiscussionReplies: 9Last Post: 12 Dec 2006, 7:27 AM