This is a migrated thread and some comments may be shown as answers.

Advance Form issues

1 Answer 27 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Vincent
Top achievements
Rank 1
Vincent asked on 30 Aug 2012, 03:26 PM
Hello,
I am using the AdvanceForm template for my RadShceduler application. There are couple issues that I need help.
1) How do you stop the validation when the AdvanceForm first load (see Subject field)
2) How do you align all fields. The Text box is no aligned with DatePicker
3) If you have Custom Attributes in the form, how do you clear their values when you open the AdvanceForm the second time?
Thanks

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 04 Sep 2012, 12:53 PM
Hello Vincent,

Thank you for contacting Telerik Support team,

Up to your questions:
  • The easiest way to remove validation from the advanced from is to use the Advanced Templates. You can download a working sample from here:
    http://www.telerik.com/support/kb/aspnet-ajax/scheduler/sample-project-of-the-customizing-the-advanced-template-example.aspx
    The validation controls are in the AdvancedForm user control.
  • Good approach of aligning all text fields is to modify their margin values to be equal to the value of the  DatePicker field in the stylesheet. You may use this help article, that contains information about the naming convention for our controls in the AdvanceForm, so you can easily access their class or id name.
  • I will provide you an example, that illustrates how to access your custom attributes fields in the AdvacedForm and clear their values, using their id names as parameter. The below example needs to be implemented in the server-side OnFormCreated event handler. You may use this link for additional information.

.aspx file

<telerik:RadScheduler ID="RadScheduler1" runat="server"
..................................
OnFormCreated="RadScheduler1_FormCreated"
</telerik:RadScheduler>

.cs file:
protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
    {
        RadTextBox customAttribute = (RadTextBox)e.Container.FindControl("customAttributeName");
        customAttribute.Text = string.Empty;
    }



Regards,
Boyan Dimitrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Vincent
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or