ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: alonewolf149 on November 20, 2019, 08:04:34 am

Title: using remote paging issues with selection
Post by: alonewolf149 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
Title: Re: using remote paging issues with selection
Post by: paramvir 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
Title: Re: using remote paging issues with selection
Post by: alonewolf149 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
Title: Re: using remote paging issues with selection
Post by: paramvir 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.
Title: Re: using remote paging issues with selection
Post by: alonewolf149 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