We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to loop and get all checked Items in Listbox?

Hi Syncfusion Team,

How do I loop and get all checked items from an SfListBox? 

Code Below:



my modal form.


I have a service that will add the items (DutyID and FullName) to a table. I just don't know how to loop through and what listbox event to use.

Any help is highly appreciated.


3 Replies 1 reply marked as answer

YA YuvanShankar Arunagiri Syncfusion Team February 23, 2023 04:49 AM UTC

Hi Oliver,

We have checked your reported query and prepared the sample based on your requirement. kindly refer to the below UG link and code snippet. Using the ValueChange event, we can get all checked items of list box.

UG link: https://blazor.syncfusion.com/documentation/listbox/how-to/bind-change-event

private void change(ListBoxChangeEventArgs<string[], VehicleData> args)


        var CheckedItems = args.Value;


Output screenshot:

Graphical user interface, application

Description automatically generated with medium confidence

Get back to us if you need any further assistance on this. 


YuvanShankar A

Attachment: Index_799a09a1.zip

Marked as answer

OT oliver tejada February 23, 2023 06:42 PM UTC

Thank you

YA YuvanShankar Arunagiri Syncfusion Team February 24, 2023 03:55 AM UTC

You are welcome, Oliver. Please get back to us if you need any further assistance on this.

If that post is helpful, please consider accepting it as the solution so that other members can locate it more quickly.

Live Chat Icon For mobile
Up arrow icon