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. Image for the cookie policy date

Combobox auto dropdown when cell clicked

Hi,

I'm using trying to use a GridMultiColumnDropDownList in an SfDataGrid.

Basically, I need to have a user be able to start typing directly into the cell (or click on the cell) and have the DDL automatically drop down. I have the datagrid EditTrigger property set to "OnTap" and NavigationMode="Cell". It works fine with a TextBox or any other control.

I also need to be able to define which columns are displayed in the DropDown.

Any ideas?


1 Reply

JS Jayapradha S Syncfusion Team April 8, 2014 07:01 AM UTC

Hi Brett, 

Thanks for using Syncfusion products. 

We analyzed your reported query. You can use SfMultiColumnsDropDownControl anyou can specify the API AllowImmediatePopup as TRUE.

This API enables you to open the popup when you start typing in that cell. 

And also you can specify the columns for dropdown by using the below code snippet and you need to disable AutoGenerateColumns as FALSE

Here with we have to define two columns for dropdown list.

Code Snippet:

<syncfusion:SfMultiColumnDropDownControl.Columns>

<syncfusion:GridTextColumn MappingName="Title" />

<syncfusion:GridTextColumn MappingName="Cast" />                   

</syncfusion:SfMultiColumnDropDownControl.Columns>

 

 Find the attached sample 

Please let us know if this helps you. 

 

Regards,

Jayapradha


Attachment: CS_cba42069.zip

Loader.
Live Chat Icon For mobile
Up arrow icon