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

TimeSlotCreated-Event set CssClass

6 Answers 92 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
myobis
Top achievements
Rank 1
myobis asked on 11 Sep 2009, 02:55 PM
Hello,

for example:

If i use the following code (example from http://www.telerik.com/help/aspnet-ajax/server-side-timeslotcreated.html)

protected void RadScheduler1_TimeSlotCreated(object sender, Telerik.Web.UI.TimeSlotCreatedEventArgs e)
   {
       
if (e.TimeSlot.Appointments.Count > 0)
       {
           e.TimeSlot.CssClass =
"Disabled";
       }  else{
           e.TimeSlot.CssClass = "Enabled";
       }
   }

The first request set this timeslot "Disabled" and the second request set this timeslot to "Enabled", the result is:
<td class=" Disabled Enabled"> </td>
(it adds the new cssClass)

If i disable viewsate, it is ok, only one cssClass there. But I need the viewstate, so what can i do?

my Version of Telerik: 2009.2.707.35

Best wishes,


Kevin


6 Answers, 1 is accepted

Sort by
0
myobis
Top achievements
Rank 1
answered on 12 Sep 2009, 08:58 AM
Is it a bug? it is only adding a style to the current, not inserting a new.


0
Yana
Telerik team
answered on 15 Sep 2009, 07:58 AM
Hello Kevin,

This is a bug which we've already logged in our bug-tracking system and it will be fixed. Thank you for reporting it.

Greetings,
Yana
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
Ari
Top achievements
Rank 1
answered on 09 Nov 2009, 10:32 AM
Anything happened? I have  Q3 2009 release installed and same problem exists.
0
Dimitar Milushev
Telerik team
answered on 12 Nov 2009, 08:55 AM
Hello Ari,

I was unable to reproduce the issue with the Q3 2009 version. Can you please provide some more information about the scenario you are testing?

Greetings,
Dimitar Milushev
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
Ari
Top achievements
Rank 1
answered on 19 Nov 2009, 06:24 AM
Hello Dimitar,
it only seems to implement when ShowNavigationPane=False

-Ari
0
Peter
Telerik team
answered on 20 Nov 2009, 02:24 PM
Hi Ari,

Please test the attached simple demo. Can you modify it so that the problem can be replicated or give us the exact steps needed to observe the issue.


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.
Tags
Scheduler
Asked by
myobis
Top achievements
Rank 1
Answers by
myobis
Top achievements
Rank 1
Yana
Telerik team
Ari
Top achievements
Rank 1
Dimitar Milushev
Telerik team
Peter
Telerik team
Share this question
or