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

Synchronize start/end dates in the Advanced Form

2 Answers 48 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Abhi
Top achievements
Rank 1
Abhi asked on 25 Nov 2010, 03:36 PM
Hi All,

I'm using RadScheduler with WebService Biding.

I want to synchronize Start Date & End Date in the Advanced Form for example if we are selecting date from StartDate DatePicker then the same date should be selected in the EndDate DatePicker and back n forth.

I've tried OnDateSelected event but it's not working because it fires every time when we use set_selectedDate()

If any one of u have faced such kind of scenario or wanna give some suggestions please go ahead.

Waiting for reply,
Thanks in advance...

2 Answers, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 30 Nov 2010, 01:49 PM
Hello Abhishek,

You can create an AdvancedEditTemplate and handle the DatePicker's events as your task requires.
Actually, we have a demo that exposes the source-code of the current AdvancedEditForm: http://demos.telerik.com/aspnet-ajax/scheduler/examples/advancedformtemplate/defaultcs.aspx

You just need to reuse what's already created and handle the events of the DatePickers as required.


Regards,
Nikolay Tsenkov
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Abhi
Top achievements
Rank 1
answered on 30 Nov 2010, 03:38 PM
Hi, 

Actually i got the solution, the thing was that it renders all the controls of AdvancedForm.ascx twice in the client side one for Insert For and another for the Edit Form.

When i was handling the OnDateSelected event of StartDate of Edit Form it was working but it was changing the date of Insert Form which was invisible. So was wondering that why it is not working.

Now i found it everything seems to be working fine.

Any wayz thatnks a lot for suggestion.

Abhishek
Tags
Scheduler
Asked by
Abhi
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Abhi
Top achievements
Rank 1
Share this question
or