We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

GridComboBoxColumn takes 2 clicks to open the dropdown

Thread ID:





118922 Apr 23,2015 11:34 AM Apr 27,2015 11:34 PM WinRT 3
Tags: SfDataGrid
Asked On April 23, 2015 11:34 AM

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?

Elavarasan M [Syncfusion]
Replied On April 24, 2015 08:58 PM

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:

public class ComboBoxRenderer : GridCellComboBoxRenderer


protected override void OnEditElementLoaded(object sender, Windows.UI.Xaml.RoutedEventArgs e)


(sender as ComboBox).IsDropDownOpen = true;

base.OnEditElementLoaded(sender, e);


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.


//customized combobox cell renderer is added.
this.sfgrid.CellRenderers.Add("ComboBox",new ComboBoxRenderer());

We have prepared a sample for your requirement also and please refer the sample from below location.
Sample location:
Please let us know if you have any queries.

Elavarasan M

Replied On April 27, 2015 09:29 AM

Worked like a champ, thanks!

Jayapradha S [Syncfusion]
Replied On April 27, 2015 11:34 PM

Hi Vasanth,

Thank you for your update.

Please let us know if you have any other queries.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.