Selecting an item in a Multicolumn ComboBox (by Filtering)

Hi,

In SfComboBox ,I used multicolumn and added a filter feature for all columns. I encountered three problems:

1- If the searched text is in the combobox items (at least in one of the columns), I want the first item in the popup to be High light and the user to select the item from the keyboard after pressing Enter.

2. The combo box is located in the tag. The submit form occurs when I select an item with the keyboard and press enter.

3-The filter does not work properly. Displays items that do not contain entered text.


      public async Task OnFiltering(Syncfusion.Blazor.DropDowns.FilteringEventArgs args)

    {

        args.PreventDefaultAction = true;

        var query = new Syncfusion.Blazor.Data.Query().Where(new Syncfusion.Blazor.Data.WhereFilter() { Field = "Title1", Operator = "contains", value = args.Text, IgnoreCase = true }.Or(fieldName: "Title2", @operator: "contains", value: args.Text, ignoreAccent: true));

        query = !string.IsNullOrEmpty(args.Text) ? query : new Syncfusion.Blazor.Data.Query();

        await objCombo.FilterAsync(lstCmbItem, query);

    }


Thank you


5 Replies

DR Deepak Ramakrishnan Syncfusion Team December 27, 2021 07:07 PM UTC

Hi Sarah, 
 
Greetings from Syncfusion support. 
 
Query : The combo box is located in the tag. The submit form occurs when I select an item with the keyboard and press enter. 
 
Yes we can able to reproduce the issue in our end . We will further validate and update the details in two business days . 
 
 
For other queries , Kindly share the simple runnable sample along with dummy data source which you have used in your application , Which will help us to further validate the issue and provide you the better solution. 
 
Thanks, 
Deepak R. 



DR Deepak Ramakrishnan Syncfusion Team December 29, 2021 06:10 PM UTC

Hi Sarah, 
 
We will update the issue details within end of December 2021, In the meantime kindly provide the requested information for the other queries to proceed further. 
 
Thanks, 
Deepak R. 



DR Deepak Ramakrishnan Syncfusion Team December 31, 2021 12:20 PM UTC

We have considered the reported issue “Form get submitted if we press Enter key in Combobox to select the value” and you can expect this fix in weekly patch release to be scheduled on 18th,January 2021. You can track the status of the issue by using the below feedback link  
 



SA Sarah replied to Deepak Ramakrishnan January 1, 2022 05:10 AM UTC

Hi  Deepak Ramakrishnan,

I do not have access to the following link

https://www.syncfusion.com/feedback/31597/form-get-submitted-if-we-press-enter-key-in-combobox-to-select-the-value 

Thank you



PO Prince Oliver Syncfusion Team January 3, 2022 05:35 AM UTC

Hi Sarah, 

Please check the link now and let us know of you still face any issues. 

Regards, 
Prince 


Loader.
Up arrow icon