[CLOSED] store.insert method + store page size problem

  1. #1

    [CLOSED] store.insert method + store page size problem

    Hi,

    I am having a bit issue when adding gridpanel rows by "store.insert" javascript method.

    When I add new rows this method does not insert a new page on grid, so if the store.pagesize is 10 after call this method the page will contains 11 records.

    This problem also occurs at https://examples2.ext.net/#/GridPane...l_Data_Paging/.

    I do not think this is a big problem but because this occurs strange behaviour with the paging. Rows in first page after paging moves to other pages, somethimes to last line of last page.

    Can you help me?

    Thank you
    Last edited by Daniil; Aug 16, 2012 at 5:15 PM. Reason: [CLOSED]
  2. #2
    Hi,

    It should be managed manually.

    Please clarify what exactly behavior do you need?

    I think if after inserting a new row the total count of records exceeds PageSize, the moveNext method should be called.
    http://docs.sencha.com/ext-js/4-1/#!/api/Ext.toolbar.Paging-method-moveNext

Similar Threads

  1. Replies: 12
    Last Post: Aug 03, 2012, 1:49 PM
  2. [CLOSED] Cancel insert on store's save after server side validation.
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Nov 23, 2011, 1:16 AM
  3. Dataview/Store Size
    By walle in forum 1.x Help
    Replies: 4
    Last Post: Oct 27, 2010, 9:45 PM
  4. Replies: 0
    Last Post: Jun 10, 2010, 1:18 AM
  5. About Store.rejectChanges method
    By sunny_sh in forum 1.x Help
    Replies: 2
    Last Post: Aug 09, 2009, 11:43 PM

Posting Permissions