Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using findcontrol in a user control
Message
From
23/02/2011 06:38:04
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Using findcontrol in a user control
Miscellaneous
Thread ID:
01501388
Message ID:
01501388
Views:
96
HI

I've got a page that contains a user control which load some telerik comboboxes.

In the page load I'm trying to set some checkbox values on the combo controls but when I try to get the items in the control it returns 0

any ideas what I'm doing wrong.

Thanks

(the code is below)
 Dim radModels As Telerik.Web.UI.RadComboBox = DirectCast(Me.DateRangeSelector1.FindControl("radModels"), Telerik.Web.UI.RadComboBox)
                For Each item As Telerik.Web.UI.RadComboBoxItem In radModels.Items
                    Dim chk As CheckBox = DirectCast(item.FindControl("chk1"), CheckBox)
                    If item.Text <> ModelName Then
                        chk.Checked = False
                    Else
                        chk.Checked = True
                    End If
                Next
Next
Reply
Map
View

Click here to load this message in the networking platform