"backColor" gets reset on "set_selectedDate"

2 posts, 0 answers
  1. Gint
    Gint avatar
    9 posts
    Member since:
    Sep 2011

    Posted 28 Sep 2011 Link to this post

    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:


    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,
  2. Ivana
    Ivana avatar
    657 posts

    Posted 30 Sep 2011 Link to this post

    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.

    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