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

"backColor" gets reset on "set_selectedDate"

1 Answer 44 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Gint
Top achievements
Rank 1
Gint asked on 28 Sep 2011, 09:39 AM
Hello Community and Telerik,

I can't change the subject anymore ;-) It should read >> "set_selectedDate" resets "backColor"  << to make my point clearer ...

This is basically my code:

scheduler.set_selectedDate(app.get_start());
app.set_backColor("green");

Works for a single second or two and then "backcolor" gets cleared again ("set_selectedDate" returns?!?)

As far as I have found out, "set_selectedDate" performs an ajax-request which overrides the "backcolor" after "it returns from the server". Right?

How do I do it correctly?

How can I determine when "set_selectedDate" returns (any hook?) or set "backcolor" surviving that ajax-call/"light-weight-postback"?

Thanks a lot,
Gint

1 Answer, 1 is accepted

Sort by
0
Ivana
Telerik team
answered on 30 Sep 2011, 04:43 PM
Hello Gint,

Take a look at the attached sample page. It shows how to style an appointment and how to save its style when post-back to the server is made.

Attached are the .aspx, aspx.cs and the .xml file the RadScheduler is bound to.

Hope this helps.

Greetings,
Ivana
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
Tags
Scheduler
Asked by
Gint
Top achievements
Rank 1
Answers by
Ivana
Telerik team
Share this question
or