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

Manipulating Advanced Form controls

2 Answers 71 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
towpse
Top achievements
Rank 2
towpse asked on 01 Dec 2009, 06:40 PM

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.

Thanks,

2 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 07 Dec 2009, 09:27 AM
Hi,

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.
0
towpse
Top achievements
Rank 2
answered on 07 Dec 2009, 02:48 PM
sweet, thanks!
Tags
Scheduler
Asked by
towpse
Top achievements
Rank 2
Answers by
T. Tsonev
Telerik team
towpse
Top achievements
Rank 2
Share this question
or