[CLOSED] Paging problem when inserting records from code behind into the store.

  1. #1

    [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?
  2. #2

    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


    <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?
    Vladimir Shcheglov
    Sr. Developer

Similar Threads

  1. Replies: 4
    Last Post: Jul 28, 2011, 4:36 PM
  2. Replies: 0
    Last Post: Jul 07, 2011, 8:19 PM
  3. Replies: 5
    Last Post: Jun 14, 2011, 11:47 AM
  4. Replies: 0
    Last Post: Sep 22, 2010, 3:42 AM
  5. Issue with inserting multiple records in grid
    By n_s_adhikari@rediffmail.com in forum 1.x Help
    Replies: 1
    Last Post: Jul 27, 2009, 5:27 PM

Posting Permissions