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.




4 Replies

SN Sudharsan Narayanan Syncfusion Team December 8, 2021 03:12 AM UTC

Hi Thomas,

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



TE Thomas Ellingsen December 8, 2021 01:36 PM UTC

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?




TE Thomas Ellingsen December 10, 2021 02:02 PM UTC

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



SN Sudharsan Narayanan Syncfusion Team December 14, 2021 03:53 AM UTC

Hi Thomas,

 
We are glad to know that your issue has been fixed. Please let us know if you need any other assistance. We are happy to assist you.

Regards,
Sudharsan


Loader.
Up arrow icon