Hello,
I am having trouble finding the proper syntax for getting controls inside Radschedulers InlineInsertTemplate (or any other template for that matter) I have read the articles in the KB about accessing controls inside templates dealing with RadMenu but none specifically dealing with RadScheduler.
I am trying to check the value of a textbox in my template on appointment insert to see if it has a value or not. If not, I want to be able to insert some sort of default value into the appointment. Whenever I try to access controls in the inline edit using schedule.FindControl("myTextBox") or schedule.NamingContainer.FindControl("myTextBox") I am met with an error
Object reference not set to an instance of an object.
Here is an example of the code I am trying to use.
Protected Sub schedule_AppointmentInsert(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerCancelEventArgs) Handles schedule.AppointmentInsert |
'Insert this dummy value into the textbox when appointment is being inserted |
CType(schedule.FindControl("TitleTextBox"), TextBox).Text = "YO" |
End Sub |
If anyone can help me out with this I would greatly appreciate it.
Thanks