Results 1 to 2 of 2

Thread: Dataview/PagingToolbar and "loadData"

  1. #1
    Sencha User
    Join Date
    Sep 2010

    Default Dataview/PagingToolbar and "loadData"

    I'm trying to implement a Paging Dataview which can add single items to the existing list. So far, so good. Paging works in general, but...

    As soon as I add a new item via store.loadData(items), the toolbar switches back to page 1, even if I'm on page 5 or whatever... but the dataView displays the correct result (existing data on page X + the new item).

    Does anyone have an idea how to solve this issue?

    Thanks in advance,

  2. #2
    Sencha User
    Join Date
    Sep 2010

    Default [Solved]

    Well, finally I found the issue!

    The store's loadData method does not pass the start and limit param, this causes the cursor to be 0 again. Now I've overwritten loadData to pass the params object.

Similar Threads

  1. DataView should select rows on "mousedown" not "mouseclick"
    By SimoAmi in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 31 Aug 2010, 2:13 PM
  2. Replies: 8
    Last Post: 11 Feb 2009, 6:53 PM
  3. [2.1][FIXED] Store.loadData does not fire "load" event
    By mcurrey in forum Ext 2.x: Bugs
    Replies: 4
    Last Post: 22 Jul 2008, 11:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts