Hi, I've been trying to disable and hide controls of my Edit template but seems like I don't know all the instance name of the control. I was able to disable some of the controls like the description, startdate and enddate but other names are not correct when using it as instance name. Where can I find the list of instance names so that I can have it disabled and hidden. Also I was able to make use of the Starttime as an instance name but upon applying enabled = false, control still enabled..
-I want to hide save
-change text of cancel to close
-hide all day and recurring task
-disable timestart and timeend
Heres my code:
ASPX:
-I want to hide save
-change text of cancel to close
-hide all day and recurring task
-disable timestart and timeend
Heres my code:
ASPX:
| <telerik:RadScheduler ID="RadScheduler1" runat="server" Width="950px" Height="480px" SelectedView="MonthView" DayStartTime="14:00:00" DayEndTime="23:59:00" |
| DataEndField="Sched_End" |
| DataKeyField="ID" DataRecurrenceField="RecurringInfo" DataRecurrenceParentKeyField="ParentID" |
| DataStartField="Sched_Start" DataSubjectField="Title" |
| HoursPanelTimeFormat="htt" ValidationGroup="RadScheduler1" ReadOnly="false" AllowDelete="false" AllowInsert="false"> |
| </telerik:RadScheduler> |
VB:
| Protected Sub RadScheduler1_FormCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.SchedulerFormCreatedEventArgs) Handles RadScheduler1.FormCreated |
| If e.Container.Mode = SchedulerFormMode.AdvancedEdit Then |
| Dim Description As TextBox = CType(e.Container.FindControl("Subject"), TextBox) |
| Dim startDate As RadDatePicker = CType(e.Container.FindControl("StartDate"), RadDatePicker) |
| Dim endDate As RadDatePicker = CType(e.Container.FindControl("EndDate"), RadDatePicker) |
| Dim startTime As RadTimePicker = CType(e.Container.FindControl("StartTime"), RadTimePicker) |
| Dim endTime As RadTimePicker = CType(e.Container.FindControl("EndTime"), RadTimePicker) |
| Description.Enabled = False |
| startDate.Enabled = False |
| endDate.Enabled = False |
| startTime.Enabled = False 'No error here but its not working |
| endTime.Enabled = False 'No error here but its not working |
| End If |
| End Sub |
Thanks in advance,
RJ