Set Selected in PreRender

2 posts, 0 answers
  1. Rich
    Rich avatar
    31 posts
    Member since:
    May 2011

    Posted 17 Jun 2011 Link to this post

    Hello again...

    Hopefully this one is easier.  I have the following code:

    Else

    'if in edit mode, set the date picker to popup on click in input box

    SetDatePickerPopop(dataItem, "ctlFollowup_DatePicker")

    'enable a scroll bar if there are too many items in the list

    GlobalMethods.SetDropDownHeight(CType(dataItem.FindControl("ctlUserNoteType"), RadComboBox))

    GlobalMethods.SetDropDownHeight(CType(dataItem.FindControl("ctlUserCombo"), RadComboBox))

    RIGHT HERE...I need to access the "ctlUserCombo", compare the text of each RadComboBoxItem, and when I find a match to a value I have, set that RadComboBoxItem to Selected = True and (if possible), Enabled = False.  That is, I have a checkbox list of people, and some have already been selected.  I want to show the user those that have already been selected, and then disable the user from being able to change the checkbox.

    Any suggestions?

    Thanks in advance for all the help.

    Rich


  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 23 Jun 2011 Link to this post

    Hi Rich,

    Can you please specify the exact issue that you encounter? Is it that you can not find the RadComboBox control on the server side or I am missing something in your scenario? Further if you need to find a specific item of the RadComboBox you could use FindItemByValue/Text.

    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.

Back to Top