Welcome Guest Search | Active Topics | Sign In | Register

Cannot Disable ComboBox Options
David
Posted: Sunday, June 24, 2012 3:12:56 AM
Rank: Advanced Member
Groups: Member

Joined: 10/21/2009
Posts: 39
When I set the ComboBox Enabled property to false, I am still able to select items from the DropDown portion of it.
When I set the DropDown portion of it to false as well, it's forecolor becomes greyed out but it is still selectable.

How can I disable the ComboBox control so that it is greyed out and non typeable and non selectable.
eo_support
Posted: Monday, June 25, 2012 9:56:52 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

We have confirmed that this is a bug. We will fix it and provide you a new build as soon as possible.

Thanks!
David
Posted: Thursday, June 28, 2012 3:28:41 AM
Rank: Advanced Member
Groups: Member

Joined: 10/21/2009
Posts: 39
Thanks, I look forward to the fix.
I also don't seem to be able to set the SelectedValue of the ComboBox.
The only way I can see to do it is by setting the SelectedValue of the ListBox inside the ComboBox but that doesn't seem to work.
eo_support
Posted: Thursday, June 28, 2012 2:55:01 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

We have posted a new build that fixed this problem. Please see your private message for the download location.

As to setting SelectedValue, that is not supported on the ComboBox as not all ComboBox has the notion of "selected value". For example, one user may want to place three buttons in the ComboBox drop down and when user clicks any of the buttons, it would set the ComboBox's Text to a different value. In this case there is no such thing as "SelectedValue" for this ComboBox. As a result, you can only set the ComboBox's Text value.

Thanks!
David
Posted: Thursday, June 28, 2012 5:48:35 PM
Rank: Advanced Member
Groups: Member

Joined: 10/21/2009
Posts: 39
Ok is there a way to set the selected index on the ListBox that is inside a ComboBox then?
Currently when I set the SelectedIndex on the ListBox inside a ComboBox it has no effect.
eo_support
Posted: Thursday, June 28, 2012 9:17:25 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

That's an issue. The ComboBox supposes to automatically match an item from the listbox with its current text value. So you do not need to manually set any selected item. This will be fixed in the next build.

Thanks!
David
Posted: Sunday, July 1, 2012 2:57:43 AM
Rank: Advanced Member
Groups: Member

Joined: 10/21/2009
Posts: 39
You are right.
If I set the text of the ComboBox Text then the correct item in the enclosed ListBox list is selected.
Settng the selected item of a ListBox that is enclosed by a ComboBox does nothing.

Thanks.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.