|
@using Syncfusion.Blazor.DropDowns
<div class="col-lg-12 control-section">
<div id="listbox-control" @ondblclick="DoubleClick">
<h4>Select your favorite car:</h4>
<SfListBox Value=@Value DataSource="@Data" TValue="string[]" TItem="DataValues">
<ListBoxEvents ValueChange="SelectItem" TValue="string[]"></ListBoxEvents>
</SfListBox>
</div>
</div>
<style>
#listbox-control {
width: 350px;
margin: auto;
}
@@media screen and (max-width: 590px) {
#listbox-control {
width: 100%;
}
}
</style>
@code{
private void DoubleClick()
{
}
private void SelectItem(Syncfusion.Blazor.DropDowns.ListBoxChangeEventArgs args)
{
}
} |
Why doesn't
Syncfusion.Blazor.Lists
Simply have a Double Click Event?
Hi Anthony,
We have checked your reported query and based on our list box architecture, there is no need for double click event action, so only we have not handled the double click event in source level. If we want double click event in list box, we can achieve it in sample level. Please refer the previous update and sample for list box double click.
Please get back to us, if you need any further assistance on this.
Regards,
YuvanShankar A