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

Cssclass of Timeslots in Radscheduler doesnot persist after postback

3 Answers 65 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Prava kafle
Top achievements
Rank 1
Prava kafle asked on 03 Mar 2011, 11:10 PM
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

3 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 05 Mar 2011, 06:31 PM
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!
0
Prava kafle
Top achievements
Rank 1
answered on 14 Mar 2011, 07:05 PM
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
0
Veronica
Telerik team
answered on 14 Mar 2011, 08:39 PM
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!
Tags
Scheduler
Asked by
Prava kafle
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Prava kafle
Top achievements
Rank 1
Share this question
or