Doubleclick event?

Is there a doubleclick event for the listbox?

<ListBoxEvents TValue="string[]" ValueChange="TagSelected" OnDoubleClick="????"/>

Mike

6 Replies 1 reply marked as answer

MK Mohan Kumar Ramasamy Syncfusion Team August 22, 2020 07:27 AM UTC

Hi Michael, 
 
We have checked your reported query, we would like to let you know that you can use ValueChange event triggers while select and unselect the list item. And you can bind the ondblclick in parent element. Please find the below code snippet: 
 
@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) 
    { 
 
    } 
 
} 
For your reference, we have prepared a sample based on this, please refer below link. 
 
 
Please let us know, if you need any further assistance. 
 
Regards, 
Mohankumar R 



PJ pascal joseph October 1, 2020 01:22 AM UTC

this solution disables allowfiltering for the listbox
this does not work:
<div id="listbox-passwords" @ondblclick="DoubleClickListboxPasswords">
            <SfListBox TValue="string[]" DataSource="@passwordTitles" TItem="PasswordTitle" @bind-Value="@Value" Height="250px" AllowFiltering="@allowFiltering" @ref="ListBoxPassList">
                <ListBoxFieldSettings Text="Text" Value="Id" />
                <ListBoxSelectionSettings Mode="SelectionMode.Single">
                    <ListBoxEvents TValue="string[]" ValueChange="onValueChange"></ListBoxEvents>
                </ListBoxSelectionSettings>
            </SfListBox>
        </div>
if you remove <div id="listbox-passwords", filtering will work again


PJ pascal joseph October 1, 2020 01:28 AM UTC

disregard my post, filtering started to work again for some strange reason


MK Mohan Kumar Ramasamy Syncfusion Team October 1, 2020 02:05 PM UTC

Hi Pascal , 
 
We have checked your reported query, we are unable to reproduce the reported issue in our end. For your reference we have prepared a sample based on this, please refer below link. 
 
 
 
Please let us know, if you need any further assistance. 
 
Regards, 
Mohankumar R 


Marked as answer

AG Anthony Griggs September 28, 2022 04:25 PM UTC

Why doesn't 

Syncfusion.Blazor.Lists

Simply have a Double Click Event?



YA YuvanShankar Arunagiri Syncfusion Team September 29, 2022 10:08 AM UTC

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


Loader.
Up arrow icon