Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using findcontrol in a user control
Message
De
23/02/2011 06:38:04
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Using findcontrol in a user control
Divers
Thread ID:
01501388
Message ID:
01501388
Vues:
97
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform