Description Property

3 posts, 0 answers
  1. Jim
    Jim avatar
    21 posts
    Member since:
    Oct 2007

    Posted 31 Oct 2008 Link to this post

    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. Serrin
    Serrin avatar
    286 posts
    Member since:
    Sep 2008

    Posted 31 Oct 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jim
    Jim avatar
    21 posts
    Member since:
    Oct 2007

    Posted 31 Oct 2008 Link to this post

    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.
Back to Top