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

Find Control In Advanced Insert Template

1 Answer 122 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 2
Ian asked on 07 Jun 2012, 03:38 PM
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
 

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 08 Jun 2012, 06:12 AM
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.
Tags
Scheduler
Asked by
Ian
Top achievements
Rank 2
Answers by
Plamen
Telerik team
Share this question
or