View Full Version : Dataview/PagingToolbar and "loadData"

30 Sep 2010, 2:53 AM
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,

30 Sep 2010, 4:43 AM
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.