Find Control In Advanced Insert Template

2 posts, 0 answers
  1. Ian
    Ian avatar
    7 posts
    Member since:
    Oct 2012

    Posted 07 Jun 2012 Link to this post

    Hi, 

    I am wondering i Have a advanced insert template that i am using and inside of this advanced insert template the user will have two options make a group event or individual event.How do I change the visiblity one of the 2 tables that have the rest of the information they must fill in for the appointment. my code currently is this and i am getting object null cause it can't find the control.
    Protected Sub ddlapptType_OnSelectedIndexChanged(sender As Object, e As System.EventArgs)
     
            Dim ddl As DropDownList = sender
     
            Dim tbl As Table = RadScheduler1.FindControl("tblGropuInsert")
            If ddl.SelectedValue = 1 Then
      //this is where i want to make the group insert table visible
            End If
     
    End Sub
     
  2. Plamen
    Admin
    Plamen avatar
    2730 posts

    Posted 08 Jun 2012 Link to this post

    Hello Ian,

     
    You can refer to this help topic where more information about how to work with templates and how to find items inside them is provided.

    Another way to handle such behavior is implemented in our Advanced Template demo where a user control is used for similar functionality.

    Hope this will be helpful.

    Kind regards,
    Plamen Zdravkov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top