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

TimeSlotCreated and NavigationComplete

1 Answer 72 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Abhijeet
Top achievements
Rank 1
Abhijeet asked on 23 Jul 2012, 05:28 AM
Hi,

In TimeSlotCreated we do lot of processing on server and accordingly set the slot availibility.

In NavigationComplete we get the new visible dates from VisibleRangeStart and VisibleRangeEnd. If the VisibleRangeStart and VisibleRangeEnd changes i.e. if they are outside our cache data, we need to refresh our data and then set the slot availibility in TimeSlotCreated.

But we noticed that when user changes the date or moves back/forward using the navigation link, TimeSlotCreated is called before (with old dates) and after NavigationComplete event (with new dates).

Why TimeSlotCreated is called before NavigationComplete is called since the new dates are not set anyway?

Is there a way to prevent this? i.e. TimeSlotCreated gets called only after NavigationComplete? Or is there a way to get the new visible dates before TimeSlotCreated is called?

Thanks,
Abhijeet

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 25 Jul 2012, 01:54 PM
Hello,

Please, see this forum post explaining why this behavior is expected and necessary.

Please, accept our apologies if this has caused you inconvenience.

Should  you have other questions or need assistance implementing a workaround for the issue, feel free to contact us again. 

Greetings, Peter
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
Abhijeet
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or