I'm trying to make the selection column on igGrid sortable and filterable, so that I can sort selected columns up and down, and also filter selected and not selected rows. I want to know if there is a way to accomplished this.
Thank you for posting in our community.
By design Sorting, Selection and Filtering features are compatible and should work flawlessly in igGrid. Additionally, we provide a feature compatibility matrix for igGrid, which can be found here.
In order to demonstrate how igGrid with multiple features works I have created a small sample where all features listed above are enabled.
Can you please test it on your side and let me know whether it helps you achieve your requirement. If this is not an accurate demonstration of what you are trying to achieve please feel free to modify my sample so that it replicates your scenario and send it back to me. Any steps to reproduce or additional information that you consider relevant will be very helpful and highly appreciated.
Looking forward to hearing from you.
Thank you so much for replying, your sample is so interesting. However, what I want to achieve is quite different. Following your sample on the first column (the selection one), I want to add the sorting and filter features on that specific column, so in case of filter I would have something like (true) for selected rows, and (false for unselected ones), so if I filter by true (on selection column), I would only be able to see the selected rows, and vice versa.
In case of sorting, I want to sort ascending selected rows and descending unselected.
I will really appreciate some help on this.
Thank you for getting back to me.
Row selector’s column is a non-data column, which means that is does not have any representation in the underlying data source. This column gives the end-user visual representation of the currently selected rows. However, Filtering and Sorting features operate only with the data in the underlying data source. Having this mind, filtering and sorting by row selectors column can be considered a new product idea which you can log in our product ides web site here.
There are many benefits to submitting a product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Please let me know if you need any further assistance with this matter.