TimeSlotCreated and Advanced form

2 posts, 0 answers
  1. Paul
    Paul avatar
    114 posts
    Member since:
    May 2009

    Posted 15 Nov 2011 Link to this post

        I have some styling setup in the TimeSlotCreated event which all works great when perfoming any commands on the secheduler, but when I double click on a timeslot to insert an appointment I get the advanced form but the styling is lost on the schedule behind. If I fillout the form and click save or even if I cancel the form the styling comes back. I have attached a screen shot before and after. On trying to track it down I noticed that on opening the form the TimeSlotCreated event is only fired once which is before page_load and when closing or saving the TimeSlotCreated event is fired after page_load. So I guess because it's not being fired after page_load when opening the form the styling is lost from when it was called before the page_load.

    If you could make a quick demo which has special day CSS styling applied in the TimeSlotCreated and also uses the advanced form that does not loose this styling when the advanced form is open I would appreciated it as I could use it to see what perhaps I'm doing wrong if it's not a bug.

  2. Peter
    Peter avatar
    6637 posts

    Posted 17 Nov 2011 Link to this post

    Hi Paul,

    This is a known limitation of styling slots via handling TimeSlotCrteated and using the modal advanced form. The reasons for this are exactly as you have pointed out.

    As a possible workaround, you can set AdvancedForm-Modal="false".

    Best Wishes,
    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
Back to Top