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

ListBox Dropped Event compiler error after update 21.1.38

Hi Support ,

ListBox Dropped Event error after update 21.1.38.

As follows screen shot.

Please kindly help!


ListBoxEvents declare

Dropped  Event

3 Replies 1 reply marked as answer

YA YuvanShankar Arunagiri Syncfusion Team April 10, 2023 04:50 AM UTC

Hi Jacky,

We have checked your reported query and in our recent main volume release, we have changed the Dropped event type from DragEventArgs to DropEventArgs. Kindly refer to the below release notes.

Release notes: https://blazor.syncfusion.com/documentation/release-notes/21.1.35?type=all#listbox

API link: https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.ListBoxEvents-2.html#Syncfusion_Blazor_DropDowns_ListBoxEvents_2_Dropped

To resolve your reported issue, kindly refer to the below code snippet.

Code snippet:

<SfListBox TValue="string[]" DataSource="@GroupA" TItem="CountryCode" AllowDragAndDrop="true">

<ListBoxFieldSettings Text="Name" Value="Code" />

 <ListBoxEvents TValue="string[]" Dropped="OnDrop" TItem="CountryCode"></ListBoxEvents>



private void OnDrop(DropEventArgs<CountryCode> args)




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


YuvanShankar A

JA Jacky April 10, 2023 07:01 AM UTC

Hi  YuvanShankar ,

It's worked, thank you quickly as Rocket reply.

Best Regards!


YA YuvanShankar Arunagiri Syncfusion Team April 10, 2023 10:24 AM UTC

You are welcome, Jacky. 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.

Marked as answer
Live Chat Icon For mobile
Up arrow icon