Manipulating Advanced Form controls

3 posts, 0 answers
  1. towpse
    towpse avatar
    224 posts
    Member since:
    Mar 2008

    Posted 01 Dec 2009 Link to this post

    I'd like to implement my own check box control similar to or in place of the All Day check box.
    I want a check box that will hide and show controls on toggle.

    I've looked through the Advanced Form javascript file and pretty much get the jist of how the click event is setup.

    If a developer wants to do something similar, would you recommend setting up a check box control in a similar fashion?

    The only thing I can't figure out is where the label for the All Day check box is created and placed. I don't see it in the markup for the advanced form ascx file.


  2. T. Tsonev
    T. Tsonev avatar
    2794 posts

    Posted 07 Dec 2009 Link to this post


    Using the same approach will be fine. It should be possible to simplify it a bit as it currently hides two separate controls and manages the respective validators.

    The JavaScript for the advanced form has become a bit bloated mainly because of the recurrence editing functionality, but we plan to improve on the situation by extracting it in a separate control. This will inevitably lead to some changes, but we'll also keep backwards-compatibility with existing templates.

    The "All day" string is set in the code behind:
    AllDayEvent.Text = Owner.Localization.AdvancedAllDayEvent;

    I hope this helps.

    All the best,
    Tsvetomir Tsonev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. towpse
    towpse avatar
    224 posts
    Member since:
    Mar 2008

    Posted 07 Dec 2009 Link to this post

    sweet, thanks!
Back to Top