This is a migrated thread and some comments may be shown as answers.

Description Property

2 Answers 45 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 31 Oct 2008, 03:00 PM
I'm working on updating our product to use the AJAX based controls from the old controls and have discovered that the Description propety in the ComboBox is no longer available.  We used this property to store some very important information for processing and are now stuck trying to find an alternative to use.  The only solution I can think up at the moment would be to create an extension class of the control in order to add back the property for our use.  Is there an alternative that I could use that I'm overlooking?

Thank you,

-Jim

2 Answers, 1 is accepted

Sort by
0
Serrin
Top achievements
Rank 1
answered on 31 Oct 2008, 06:40 PM
Hey Jim,

Looking at the control I don't see anything comparable... but maybe you can combine several values into the Value field and then split that and grab what you need?  I.e., in one of my little dummy apps I have the value as follows:

"option1 | 12.99, blue, small"

So when I do my processing logic I split based on | and depending on whether I need the reference or the product info I just choose either the first item or the second item from the split.  Clunky, but it works for me. ;D
0
Jim
Top achievements
Rank 1
answered on 31 Oct 2008, 06:46 PM
Thanks for the suggestion.  What I've done for now is create a new class that is an extension of the RadComboBox and put it in an assembly that contains a few other custom controls that I use.  In the extension, I just added the Description property, which make everything work the way I want it to.
Tags
ComboBox
Asked by
Jim
Top achievements
Rank 1
Answers by
Serrin
Top achievements
Rank 1
Jim
Top achievements
Rank 1
Share this question
or