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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Draw Behaviour in a Combo Box

Thread ID:

Created:

Updated:

Platform:

Replies:

29384 May 24,2005 05:31 PM UTC May 25,2005 08:57 PM UTC WinForms 3
loading
Tags: Tools
Nick Zdunic
Asked On May 24, 2005 05:31 PM UTC

Is there a way to modify the drawing behaviour in a combo box. The items when dropped down should be drawn as is. The selected item needs to drawn a differently (i.e. surrounding white space needs to removed). Can be done in a grid combo. How about just the combo box and which one.

Administrator [Syncfusion]
Replied On May 24, 2005 06:20 PM UTC

Hi Nick, ComboBoxBase allows you to attach any ListControl to it. So to customize the dropdown, all you have to do is create your own ListControl or extend an existing one and add the rendering support you desire. Regards, Gregory Austin Syncfusion Inc.

Nick Zdunic
Replied On May 25, 2005 05:45 AM UTC

I don''t want to modify how the Drop Down items are rendered, just the text box item. The drop down shows a hierarchy of items with spaces to indicate nesting. When an item is selected then the textbox should display the item without the leading spaces. It doesn''t seen clear to me that this rendering can be done in the textbox. >Hi Nick, > > ComboBoxBase allows you to attach any ListControl to it. So to customize the dropdown, all you have to do is create your own ListControl or extend an existing one and add the rendering support you desire. > >Regards, >Gregory Austin >Syncfusion Inc.

Administrator [Syncfusion]
Replied On May 25, 2005 08:57 PM UTC

Hi Nick, Instead of adding the leading spaces to your items, I would recommend customizing your dropdown to render the added space itself. That way, when the item is selected, the textbox will not require any custom rendering. Regards, Gregory Austin Syncfusion Inc.

CONFIRMATION

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon

;