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

Event order

3 Answers 95 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Teija
Top achievements
Rank 1
Teija asked on 11 Jan 2010, 06:43 PM
I have a solution where I want to change what kind of appointments I want to show by selecting and unselecting the type in a context menu. The problem is that the event TimeSlotContextMenuItemClicking executes after AppointmentCreated. In the event AppointmentCreated I am making the appointments that are not to be shown invisible. But because TimeSlotContextMenuItemClicking executes after I have no way to have the recent corrent show or show not information.
How can I solve this?

/Mathias

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 14 Jan 2010, 10:54 AM
Hi Mathias,

AppointmentCreated occurs too late in the page's life cycle to be able to set the Visible property of the appointment. You should use AppointmentDataBound instead. Also, you need to call Rebind() for RadScheduler in TimeSlotContextMenuItemClicking. 


Best wishes,
Peter
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
Teija
Top achievements
Rank 1
answered on 14 Jan 2010, 03:03 PM
Yes AppointmentDataBound  occurs before AppointmentCreated , thats good.
But I cannot trigger a new data binding. ReBind() just triggers AppointmentCreated  and not AppointmentDataBound
in my project. Why is that?

/Mathias
0
Peter
Telerik team
answered on 18 Jan 2010, 03:03 PM
Hi Mathias,

That's strange. Do you have a sample which you can send via a support ticket?


Greetings,
Peter
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.
Tags
Scheduler
Asked by
Teija
Top achievements
Rank 1
Answers by
Peter
Telerik team
Teija
Top achievements
Rank 1
Share this question
or