Advance Form issues

2 posts, 0 answers
  1. Vincent
    Vincent  avatar
    3 posts
    Member since:
    Oct 2011

    Posted 30 Aug 2012 Link to this post

    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

  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2035 posts

    Posted 04 Sep 2012 Link to this post

    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.
Back to Top