PDA

View Full Version : Paginated Grid with filter



petrabudikarunia
20 Feb 2011, 10:39 AM
Hi all..I'm a newbie.. could u give me an example of how to develop a paginated grid with filter using extjs and php? thx before ^.^!

Condor
21 Feb 2011, 7:12 AM
Local or remote paging? Local or remote filtering?

(you obviously can't have remote paging with local filtering)

santubudhe
4 Mar 2011, 2:57 AM
Hi, its remote paging i am doing. At a particular time based on start and limit parameters i am calling the page and when i use the filter i can only filter on that page but i want to filter on the entire store which is on the server-side.

My filter creation is

var ofilter = new Ext.ux.grid.GridFilters({
local : true,
filters : oParams.filters //type:string, dataIndex:name
});


I plug this in the pagging tool bar

var pagingToolbar = {
xtype : 'paging',
store : remoteJsonStore,
pageSize : 50, // the increment per page
plugins : [ ofilter ],
displayInfo : true,
items : [ '-', {
text : 'Save Changes',
handler : onSave
}, '-', {
text : 'Reject Changes',
handler : onRejectChanges
}, '-' ]
};

****Example taken from jeasus garcias book on EXTJS

How do i make the GridFilter act on the entire store.

thank you.

tenBoxelulley
10 Apr 2011, 8:22 PM
I have a glass canopy for my tank and was wondering do i cut off a piece of the plastic in order to fit it with the filter i have?Its a penguin bio-wheel filter.

freshyseth
4 Oct 2012, 10:47 AM
tenBoxelulley: Yes. Yes you do.

zlevardy
9 Oct 2012, 4:34 AM
hi,

similar thing. I am doing a paging remotely with bbar. And having some imput fields to filter result. It is all good until user click on my search button. How can I hook over column head clicks (reorder), or even the reload icon on paging toolbar? I would like always include my search criteria fields attached to query.

thank you