Author Topic: remote grid rows selection with checkbox.  (Read 2407 times)

SureshB

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 32
    • View Profile
remote grid rows selection with checkbox.
« on: November 04, 2015, 03:00:50 am »
Hi

I am loading grid as remote. for each page data will load remotely. and while using checkbox selection for rows. when i move to second page. the rows selected in the first page are de selecting.

How to get the selected row ID's of previous page when i move to next or previous page to turn on them again.

Please help.


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: remote grid rows selection with checkbox.
« Reply #1 on: November 04, 2015, 11:59:39 am »
These are the steps:

1. Listen to beforeChange event of the pager.

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

2. Save the Row IDs of selected checkboxes as shown in this demo against the current page number.

http://paramquery.com/pro/demos/checkbox_id

3. Restore the checkbox state in the load event.

http://paramquery.com/pro/api#event-load

Please let me know if you need further assistance on this.
« Last Edit: November 04, 2015, 12:01:38 pm by paramquery »

SureshB

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: remote grid rows selection with checkbox.
« Reply #2 on: November 17, 2015, 07:50:17 pm »
Thank you for the Support. It worked for me.