|
<div id="listbox1">
<h4>Group A</h4>
<SfListBox TValue="string[]" DataSource="@GroupA" Scope="#listbox" TItem="CountryCode">
<ListBoxEvents TValue="string[]" OnActionComplete="OnActionComplete"></ListBoxEvents>
<ListBoxFieldSettings Text="Name"></ListBoxFieldSettings>
<ListBoxToolbarSettings Items="@Items"></ListBoxToolbarSettings>
</SfListBox>
</div>
<div id="listbox2">
<h4>Group B</h4>
<SfListBox TValue="string[]" ID="listbox" DataSource="@GroupB" TItem="CountryCode">
<ListBoxFieldSettings Text="Name"></ListBoxFieldSettings>
</SfListBox>
</div>
@code {
public string[] Items = new string[] { "moveUp", "moveDown", "moveTo", "moveFrom", "moveAllTo", "moveAllFrom" };
public List<CountryCode> GroupA = new List<CountryCode>
{
new CountryCode{ Name = "Australia", Code = "AU" },
new CountryCode{ Name = "Bermuda", Code = "BM" },
….
};
public List<CountryCode> GroupB = new List<CountryCode>
{
new CountryCode{ Name = "India", Code = "IN" },
new CountryCode{ Name = "Italy", Code = "IT" },
….
};
public class CountryCode
{
public string Name { get; set; }
public string Code { get; set; }
}
public void OnActionComplete(Syncfusion.Blazor.DropDowns.ActionCompleteEventArgs args)
{
if(args.EventName == "moveTo" || args.EventName == "moveUp")
{
// perform your operation
}
}
} |
I dont beleive this was fixed, ValueChanged is still not fired when item is moved from left to right.
Hi Alex,
We have reviewed your query, and the ListBox ValueChange event is being triggered correctly when selecting values in the ListBox. For your reference, we’ve included a sample project along with a video demonstration.
If the issue persists, please provide us with a full page code snippet that includes the Syncfusion ListBox, including any steps and a video demonstration. Additionally, let us know which package version you're using in your project. This will help us deliver a more tailored solution promptly.
If you're using an older package version, we recommend updating to the latest Syncfusion package (v27.1.56) and testing again on your side.
Please let us know if you need any further assistance on this.
Regards,
KeerthiKaran K V