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
close icon

How to prevent the text in the ComboBox from going to the next item when it is doubleclicked.

Hi, In our project we use the GridControl and ComboBox as its celltype. The problem is: when user doubleclicks the text of the ComboBox, the next item in the list is automatically selected and the text is highlighted. We do not want this behavior, we want the original text to stay and the text get highlighted. How can we do that? Thanks Dongxian

5 Replies

AD Administrator Syncfusion Team September 29, 2004 06:08 PM UTC

To avoid this behavior, I think you would have to derive GridComboBoxCellModel and GridComboBoxCellRenderer to create your own custom combobox celltype. Then in your renderer class, override OnEditPartMouseDown and do not call the baseclass.


AD Administrator Syncfusion Team September 29, 2004 06:54 PM UTC

Here is a thread that has a sample in it. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=13608


DL Dongxian Li September 30, 2004 10:35 AM UTC

Thanks. Is there any plan to include this feature in the ComboBox in the future release? It would be nice if we don''t have to derive our own ComboBoxes. I think it is a useful feature that many people would like to have. >Here is a thread that has a sample in it. > >http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=13608


AD Administrator Syncfusion Team September 30, 2004 11:52 AM UTC

I have added this (Item 587) to our Open Issues database as a feature request.


DL Dongxian Li September 30, 2004 12:08 PM UTC

That is great. Thanks. Dongxian

Loader.
Live Chat Icon For mobile
Up arrow icon