Event order

4 posts, 0 answers
  1. Teija
    Teija avatar
    23 posts
    Member since:
    Oct 2008

    Posted 11 Jan 2010 Link to this post

    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
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 14 Jan 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Teija
    Teija avatar
    23 posts
    Member since:
    Oct 2008

    Posted 14 Jan 2010 Link to this post

    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
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 18 Jan 2010 Link to this post

    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.
Back to Top