Combobox popup opens automaticaly when text changes.

Hi Syncfusion team,

I would like to disable automatic opening of combobox popup when I type smth in combobox. Is it possible to do?

Best regards,
Volodymyr

1 Reply 1 reply marked as answer

SN Sevvandhi Nagulan Syncfusion Team October 19, 2020 12:09 PM UTC

Hi Vladimir, 


Greetings from Syncfusion support. 


You can prevent the popup from opening by setting args.cancel = true in the open event. Refer to the code below 


<SfComboBox TValue="string" TItem="GameFields" PopupHeight="230px" AllowFiltering="true" Placeholder="Select a game" DataSource="@Games"> 
    <ComboBoxEvents TValue="string" TItem="GameFields" OnOpen="OnOpen" Filtering="onFiltering" OnClose="onClose"></ComboBoxEvents> 
    <ComboBoxFieldSettings Text="Text" Value="ID"></ComboBoxFieldSettings> 
</SfComboBox> 
 
public void OnOpen(BeforeOpenEventArgs args) 
    { 
        if (isFilter) 
        { 
            args.Cancel = true; 
        } 
        else 
        { 
            args.Cancel = false; 
        } 
        isFilter = false; 
 
    } 


Please find the sample below, 





Please check the above sample and get back to us if you need further assistance. 



Regards, 
Sevvandhi N 


Marked as answer
Loader.
Up arrow icon