Author Topic: using remote paging issues with selection  (Read 2708 times)

alonewolf149

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 56
    • View Profile
using remote paging issues with selection
« on: November 20, 2019, 08:04:34 am »
Hi,

I using remote paging , i facing issue

when i selecting any row http://prntscr.com/pzco3v and go to another page. and again back to same page. selection is deleted.
is there any solution ?

Thanks

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: using remote paging issues with selection
« Reply #1 on: November 20, 2019, 12:58:04 pm »
Remote paging

pqPager:beforeChange event can be used to save selections on current page in a data structure ( array/ object ) and then restore them when user navigates back to same page. you would need unique id of every row to associate selections with corresponding rows.

API: https://paramquery.com/pro/api/pager#event-beforeChange

Example for usage of beforeChange event of pager: https://paramquery.com/pro/demos/editing
« Last Edit: November 20, 2019, 03:50:42 pm by paramvir »

alonewolf149

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 56
    • View Profile
Re: using remote paging issues with selection
« Reply #2 on: November 20, 2019, 05:33:38 pm »
hi, what i mean is sometime i maybe not come back to previously page but after checked all row all pages
now i want to get all ID selected row to do some action such as delete

can i do ?  and if yes, can u provide sample ?

Thanks

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: using remote paging issues with selection
« Reply #3 on: November 20, 2019, 09:17:38 pm »
Deleting or manipulating records on other pages in case of remote paging is not feasible. Please use local paging.

alonewolf149

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 56
    • View Profile
Re: using remote paging issues with selection
« Reply #4 on: November 21, 2019, 03:38:51 pm »
suppose i have more than 100,000 with local page

any solution i can handle with fast speed ?

Thanks