Setting Combo To Retrieved Value

3 posts, 0 answers
  1. Thomas Derenthal
    Thomas Derenthal avatar
    38 posts
    Member since:
    Apr 2010

    Posted 23 May 2011 Link to this post

    I have an object/property called User.JobPosition where the JobPosition is a string.

    I have a ComboBox that is bound to a sql datasource with AppendDataBoundItems set to True that selects from a lookup table of JobPositions.

    Ho do I get the ComboBox to display the User.JobPosition. I have tried this and this:
    ddlPosition.FindItemByValue(User.JobPosition.ToString))
    
    ddlPosition.Items.Insert(0, New ListItem(User.JobPosition.ToString, User.JobPosition.ToString))
    Neither of which work, whereas the native .NET dropDownList will allow something similar.
  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 26 May 2011 Link to this post

    Hello Thomas,

    Please take a look at the followinh help article and let me know if this is of any help to your scenario. It explains how you can insert an item to the RadComboBox control.

    All the best,
    Kate
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. Thomas Derenthal
    Thomas Derenthal avatar
    38 posts
    Member since:
    Apr 2010

    Posted 26 May 2011 Link to this post

    Thank you this is exactly what I needed.
Back to Top