PDA

View Full Version : GridPanel Paging



warlord0
6 Jun 2007, 3:31 AM
Firstly, WOW! what a great program - Never before have I written so little JS and got so much back!

Now, my problem.

I'm using a tree that when the final leaf node is double clicked I'm reloading a GridPanel with data relevant to that node.

The actual load/reload of the data

ds.reload('jsonQuery.php', {params:{start:0, limit:50, id:path})

works fine and displays the data from the php query using the id to filter the sql query, just fine. But when I click next page the id parameter doesn't appear to get kept and passed on. Hence the recordset correctly moves to page 2 but in the entire recordset, not just the ones matching the id.

Any clues appreciated.

Animal
6 Jun 2007, 3:38 AM
http://extjs.com/deploy/ext-1.1-beta1/docs/output/Ext.data.Store.html#config-baseParams

warlord0
6 Jun 2007, 4:16 AM
http://extjs.com/deploy/ext-1.1-beta1/docs/output/Ext.data.Store.html#config-baseParams

YOU DA MAN!!! What a fantastic response time too, would the premium support deliver the answer directly to my brain? :D

Excellent works like a charm.

I just set



ds.baseParams = { id:path };
ds.reload({params:{start:0, limit:50}});


/me bows humbly

Thank you