Hi
I have two questions regarding the 'RadSchedulerRecurrenceEditor' control.
1) I want to hide the 'No end date' and have 'End by' selected as default.
for this I used the following script
so as a default set the 'End by' radio selected, is there a better way to get to the 'End by' control and have it selected.
2) Secondly the other scenario is if I select the 'End after' radio option I would like to use a client side custom validator to check if the 'end after' text box is not empty or null
Please let me know ASAP and its kind of urgent.
Thanks in advance.
Tejas
I have two questions regarding the 'RadSchedulerRecurrenceEditor' control.
1) I want to hide the 'No end date' and have 'End by' selected as default.
for this I used the following script
function
pageLoad() {
var
$ =
$telerik.$;
$(
".RecurrenceEditor"
).children().each(
function
(i) {
//by default set the 'End by' radio selected
var
chkEndAfter =
document.getElementById(
'MainContent_UCReccuranceControl1_ffRecurrenceEditor_RepeatUntilGivenDate'
);
chkEndAfter.checked =
true
;
//hide the 'No end date' radio option
$telerik.$(
".rsAdvOptionsPanel ul li:first-child"
).hide();
});
}
so as a default set the 'End by' radio selected, is there a better way to get to the 'End by' control and have it selected.
2) Secondly the other scenario is if I select the 'End after' radio option I would like to use a client side custom validator to check if the 'end after' text box is not empty or null
Please let me know ASAP and its kind of urgent.
Thanks in advance.
Tejas