The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
GridComboBoxColumn in SfDataGrid takes 2 clicks to open the dropdown. I have EditTrigger="OnTap" set for grid and AllowFocus = True set for combobox column. How do I make the combobox column to open dropdown in single click?
EMElavarasan M Syncfusion Team April 25, 2015 12:58 AM UTC
Hi Vasanth, Thank you for using Syncfusion Products. We have analysed your query and you can achieve your requirement by customizing default cell renderer of GridComboBoxColumn. For customizing, you need to create customized combobox renderer by deriving it from GridCellComboBoxRenderer. In the customized combobox renderer, you need to override the OnEditElementLoaded method and enable IsDropDownOpen of property of combobox as true. Please refer the below code snippet to create customize combobox cell renderer and override the OnEditElementLoaded method. Code Snippet:
After creating customized combobox cell renderer, you need to remove default combobox cell renderer and add the customized cell renderer as shown in below code snippet, Code Snippet:
//Default combobox cell renderer is removed.
this.sfgrid.CellRenderers.Remove("ComboBox");
//customized combobox cell renderer is added. this.sfgrid.CellRenderers.Add("ComboBox",newComboBoxRenderer());