Author Topic: How to Get All Selected Rows. Even when Filtered is applied.  (Read 677 times)

vijay@spinetechnologies

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 87
    • View Profile
I am using global search to filter data and then select rows using checkbox.
When i get the selectedRows using SelectRow().getSelection() it only gives me the selected rows from filtered records.
I want to get all selected rows without filter.
(i.e if I clear the search textbox and get selected rows then it gives all selected rows, but when the search textbox is not empty then it is giving selected rows from filtered records only).

I have also attached screenshots for reference.
I am searching records using global search
In Attachment 1 I have selected the employee field and in Attachment 2 I have selected the age field.





paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: How to Get All Selected Rows. Even when Filtered is applied.
« Reply #1 on: June 17, 2022, 07:59:25 pm »
Please set filterModel.hideRows = true

vijay@spinetechnologies

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 87
    • View Profile
Re: How to Get All Selected Rows. Even when Filtered is applied.
« Reply #2 on: July 18, 2022, 01:07:55 pm »
Given solution is working properly :).
Thanks for your reply.

vijay@spinetechnologies

  • Pro Enterprise
  • Jr. Member
  • *
  • Posts: 87
    • View Profile
Re: How to Get All Selected Rows. Even when Filtered is applied.
« Reply #3 on: February 23, 2023, 10:54:52 am »
Hi team,

If we use filterModel.hideRows = true, then select all Header checkbox is selecting all records. i want to select only filtered records.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: How to Get All Selected Rows. Even when Filtered is applied.
« Reply #4 on: February 23, 2023, 11:43:45 am »
That contradicts with your original requirement  :)

Quote
When i get the selectedRows using SelectRow().getSelection() it only gives me the selected rows from filtered records.
I want to get all selected rows without filter.

Please clarify.