Hi all,
in my radscheduler instance I've a validator on subject field
This is the code
and the javascript part
The validator is working because when i click on "Save" button the appointment is not saved, but no error message is showing.
I've hide some component of the advanced form in this way
and
Could it be the cause? I've tried to remove all this code and nothing changed..
Any help on this?
Thanks a lot
N.
in my radscheduler instance I've a validator on subject field
This is the code
protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e) { if ((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert)) { CustomValidator validatorForFilm1 = new CustomValidator(); RadScheduler scheduler = (RadScheduler)sender; validatorForFilm1.ValidationGroup = scheduler.ValidationGroup; validatorForFilm1.ControlToValidate = "Subject"; validatorForFilm1.ErrorMessage = "Error"; validatorForFilm1.ClientValidationFunction = "validationFunctionSubject"; (e.Container.FindControl("Subject") as RadTextBox).Parent.Controls.Add(validatorForFilm1); //e.Container.Controls.Add(validatorForFilm1); }}and the javascript part
function validationFunctionSubject(source, arguments) { if (arguments.Value.length > 0) { arguments.IsValid = true; } else { arguments.IsValid = false; } }The validator is working because when i click on "Save" button the appointment is not saved, but no error message is showing.
I've hide some component of the advanced form in this way
function OnClientFormCreated(sender, eventArgs) { $telerik.$(".rsRecurrenceOptionList").children().each(function (i) { if (i < 1 || i >= 2) $(this).hide(); }); $telerik.$(".rsRecurrenceOptionList li:eq(1) input").attr("checked", "checked"); $telerik.$(".rsRecurrenceOptionList li:eq(1) input").click(); $telerik.$(".rsAdvRecurrenceRangePanel li:eq(0)").hide(); $telerik.$(".rsAdvRecurrenceRangePanel li:eq(1) span input").attr("checked", "checked"); $telerik.$(".rsAdvDaily li:eq(1)").hide(); $telerik.$(".rsAdvRecurrenceRangePanel li:eq(1)").hide(); $telerik.$(".rsAdvRecurrenceRangePanel li:eq(2) input").attr("checked", "checked"); //$telerik.$(".rsAdvRecurrenceRangePanel li:eq(2) input").click(); $telerik.$(".rsAdvOptionsPanel li:eq(1)").hide(); $telerik.$(".rsAdvOptionsPanel li:eq(2)").hide(); }and
.rsAdvRecurrencePatterns{ visibility : hidden !important; height: 0px;}Could it be the cause? I've tried to remove all this code and nothing changed..
Any help on this?
Thanks a lot
N.
