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.

ComboBoxBarItem disappears when Enabled set to false.

Thread ID:

Created:

Updated:

Platform:

Replies:

42085 Mar 20,2006 02:51 AM Mar 29,2006 06:52 PM Windows Forms 6
loading
Tags: Tools
Terence Rossow
Asked On March 20, 2006 02:51 AM

Hi there, I have a ComboBoxBarItem that is disapperaing. Originally, I set its Enabled property to false once, and did not touch it. Now I''m setting it in the UpdateUI event - and when false, the item does not appear (whether this is the direct cause, or a result of something else, I am not sure). When enabled everything works fine. Any ideas? Cheers, TERRY ROSSOW

Mano J [Syncfusion]
Replied On March 20, 2006 11:02 AM

Hi Terry, Sorry for the inconvenience caused. I have tested this issue here and I was able to see the problem in the test sample attached. Could you please refer to this sample and let me know if you are able to see the problem. If possible, please modify the sample to show the issue. Also, please provide more information about what you exactly do in your application. Thanks for your patience. Regards, Mano Menus_F42085.zip

Terence Rossow
Replied On March 20, 2006 06:06 PM

Hi Mano, I assume you meant that you couldn''t reproduce this problem. I attempted to do it in your sample app but I could not either. What we have is a BaseForm holding the combo box item, and a property that can be overridden on the form to set it enabled or disabled. Whenever a form activates, it clears the current combo box textboxvalue. In the forms, we typically have a grid, and the combo box item is an editbar for the current cell (think Excel). This all works fine - until I activate a window that where the combo box item is disabled. The textboxvalue gets set to string.empty, and the item is disabled in the UpdateUI event - but for some reason it disapperas altogether. Very strange... Cheers, TERRY ROSSOW

Mano J [Syncfusion]
Replied On March 22, 2006 08:45 AM

Hi Terry, Sorry for this delay in getting back to you. I am currently working on this issue and will provide an update at the earliest. Thanks for your patience. Regards, Mano

Mano J [Syncfusion]
Replied On March 23, 2006 04:30 AM

Hi Terry, Could it be possible for you to show this issue using a sample as I am still unable to replicate this issue for some reason?. It could be of great help to us in solving this issue. Thank for your patience and understanding on this issue. Thanks, Mano

Terence Rossow
Replied On March 23, 2006 07:29 PM

Hi Mano, Unfortunately, I cannot get it to happen in a test application. It is obviously something we have done in our application somewhere. If I do manage to get a test app showing the behaviour, I will post it. Thanks for your help, TERRY ROSSOW

Terry Rossow
Replied On March 29, 2006 06:52 PM

I figured this problem out. What was happening was the ComboBoxBarItem was on a MDI child form. I had not given the item any Text, thinking that the text would show up in the Bar it was positioned on. The parent form has NO item for this to merge with, and somehow, because it had no Text, the child''s item was removed altogether, until I enabled it and set some text to it. A simple workaround - but this would still seem to be a bug to me. Cheers, TERRY ROSSOW

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.

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.

;