Author Topic: Dynamic Pagination or refresh,when using add new rows with Remote pagination  (Read 2234 times)

jeeva

  • Newbie
  • *
  • Posts: 29
    • View Profile
Dear Support,

I am using remote pagination and (pageModel: { type:'remote'}).
In Grid have multiple add row option based on row selection.

Issue:

1.Page 1 have default 50 records from server call.
2.Try to add 5 new rows.
3.When try to add new 5 rows,server data of 5 records moved to next page.
4. Requirement is the server data of 50 + newly added 5 rows or data should stay in same page. Any help please.
5.When add rows I have tried to change the pagination dynamically as below.But not works.
obj.pageModel.type = "local";
obj.pageModel.rPP = "100";

its changing the data ,but not reflecting in grid.

thanks
jeeva


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
This is incorrect way of dynamically changing grid options.

obj.pageModel.rPP = "100";

Correct way:

grid.option('pageModel.rPP', 100);