How can I change builtin text of RadScheduler from Subject=> Description, StartTime => Start Date, EndTime=> EndDate and how can I hide checkbox of AllDay and Recurrence.
I had also tried inside OnFormCreated event
CheckBox AllDayEvent = (CheckBox)e.Container.FindControl("AllDayEvent");
AllDayEvent.Visible=false;
RadTimePicker StartTime = (RadTimePicker)e.Container.FindControl("StartTime");
RadTimePicker EndTime = (RadTimePicker)e.Container.FindControl("EndTime");
StartTime.Visible = false;
EndTime.Visible = false;
but after this code save button does not work.
Can I set the height of Subject box? You can easily understand my questions in attached image.
Please find attached image.
Thanks
5 Answers, 1 is accepted
The following changes (highlighted) have to be made to AdvancedForm.ascx in order to change the labels Text:
1. Subject=> Description:
<
telerik:RadTextBox
runat
=
"server"
ID
=
"SubjectText"
Width
=
"100%"
LabelCssClass
=
"rfbLabel"
Label
=
'Description'
/>
2. StartTime => Start Date:
<
label
class
=
"rfbLabel"
for='<%= StartDate.ClientID %>_dateInput_text'>
StartDate</
label
>
3. EndTime=> EndDate:
<
label
class
=
"rfbLabel"
for='<%= EndDate.ClientID %>_dateInput_text'>
EndDate</
label
>
4. You can hide the AddDay and Recurrence check boxes with the following two CSS rules:
html .RadScheduler .rsAllDayWrapper {
visibility
:
hidden
;
}
html .RadScheduler .rsAdvChkWrap {
visibility
:
hidden
;
}
5. The subject box' height can be set with the following rule:
html .RadScheduler .riContentWrapper > input {
height
:
100px
;
}
Regards,
Ivan Danchev
Telerik
Another way to change these labels is to set their corresponding RadScheduler Localization properties:
<
telerik:RadScheduler
runat
=
"server"
ID
=
"RadScheduler1"
Localization-AdvancedSubject
=
"Description"
Localization-AdvancedFrom
=
"StartDate"
Localization-AdvancedTo
=
"EndDate"
>
This will work even if you do not use the AdvancedForm UserControl in your project.
Regards,
Ivan Danchev
Telerik
You can set the Subject TextBox' MaxLength property in the Scheduler's FormCreated event handler:
protected
void
RadScheduler1_FormCreated(
object
sender, SchedulerFormCreatedEventArgs e)
{
if
(e.Container.Mode == SchedulerFormMode.AdvancedInsert || e.Container.Mode == SchedulerFormMode.AdvancedEdit )
{
RadTextBox subject = (RadTextBox)e.Container.FindControl(
"Subject"
);
subject.MaxLength = 10;
}
}
For this to work on appointment insertion the StartInsertingInAdvancedForm property has to be set to "true".
The subject box' height can be changed with the CSS rule I posted in my previous reply, however this would only be a visual change and text would still be possible to enter only on a single line, since the Subject textbox renders as an input element.
Regards,
Ivan Danchev
Telerik