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

Set Selected in PreRender

1 Answer 88 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Rich
Top achievements
Rank 1
Rich asked on 17 Jun 2011, 05:57 PM
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


1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 23 Jun 2011, 10:11 AM
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.

Tags
ComboBox
Asked by
Rich
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or