[CLOSED] Paging problem when inserting records from code behind into the store.
Hi,
I have a panel grid with a paging toolbar. I display 20 records per page.
I have row commands with which I can delete records of the page and insert records.
Problem now is: If I delete records, the number of records per page changes. Is there some way to get the first item of the next page on the page?
RE: [CLOSED] Paging problem when inserting records from code behind into the store.
Hi,
Do you use some proxy in the Store? I don't recomend perform insert/delete operations for paging grid if data is getting remotely, otherwise always reload current grid's page.
If you don't use proxy the you can refresh grid's page (repaging) by calling
Code:
<Click Handler=" #{GridPanel1}.store.load(#{GridPanel1}.store.lastOptions);" />
See example from SVN
trunk\Coolite.Examples\Examples\GridPanel\Paging\L ocal_Data_Paging\
Did it solve the problem or maybe I misunderstood your requirement?