Filter to show only checked
Hi,
I have a SFListview binding to a data table. The listview shows a list of databases, with checkboxes.
Can I use filter to show only selected rows (=checked) then press 'Only Selected'?
Just now I reload data from a SQL database then changing Only Selected, but I want to use filter to hide all unselected items.
Thanks for contacting Syncfusion Support,
We have checked the reported query “Filter to show the Selected item” from our end. We have prepared the sample to achieve the requirement by using data row view for filtering the items. So, please find the sample from the below,
Sample: https://www.syncfusion.com/downloads/support/forum/170981/ze/SfListView_filter-900296364
Please check the sample and let me know whether the sample meets your requirement If not, please provide the details about the requirement for the further. It will helpful to prompt the solution for us.
Regards,
Sudharsan
Sorry, but the sample did not use filter as I ask for. I don't want two listviews, only one.
In my first picture I have a list of names loaded from a data table. I select one or more by click at the items checkbox so it indicate checked.
The question is if I can hide all unchecked items if I click on the checkbox below the listview, called 'Only Selected'.
If 'Only Selected' the listview should filter so only items with status checked is visible. If unchecked all items will be showed again in the listview.
How can I use filter properties to toggle between shows all or shows only checked?
Hi again,
I have now solved the problem with show only checkboxes or show all items in a listview. It was a bit complicated so it took me a day to solve.
Regards
Thomas
Regards,
Sudharsan
- 4 Replies
- 2 Participants
-
TE Thomas Ellingsen
- Dec 6, 2021 02:54 PM UTC
- Dec 14, 2021 03:53 AM UTC