Cssclass of Timeslots in Radscheduler doesnot persist after postback

4 posts, 0 answers
  1. Prava kafle
    Prava kafle avatar
    217 posts
    Member since:
    Apr 2010

    Posted 03 Mar 2011 Link to this post

    Hi,

    How can I make css class of time slots in Radscheduler persist after postback. I am giving a colorful background to special days and times and I loose them after postback.

     protected void rsTicketsSchedule_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
        {
       
            if ( condition1)
                  e.TimeSlot.CssClass = "Disabled";
           if ( condition2)
               e.TimeSlot.CssClass = "enabled";
    }

    To get the styles back, I have to rebind scheduler with every postback from the page. It affecting the performance of my application,  I want to avoid this and make cssclass persist.

    Thanks,
    Prava
  2. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 05 Mar 2011 Link to this post

    Hello Prava kafle,

    It is strange that you are loosing the styles after postback. Could you please send me your code so I can inspect it and help you?

    Thank you!

    Greetings,
    Veronica Milcheva
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. Prava kafle
    Prava kafle avatar
    217 posts
    Member since:
    Apr 2010

    Posted 14 Mar 2011 Link to this post

    Hi Veronica,
    I tried to create a sample project and in the process fixed the bug. Scheduler is now rendering properly and Timeslots's css class also persists after postback.

    Thanks for the reply.
    Prava
  4. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 14 Mar 2011 Link to this post

    Hi Prava kafle,

    I'm glad that you've been able to solve your problem.

    If you have further questions - please let me know.

    Greetings,
    Veronica Milcheva
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top