Dynamic SpecialDays

2 posts, 0 answers
  1. Phil
    Phil avatar
    2 posts
    Member since:
    Jun 2011

    Posted 24 Jul 2011 Link to this post

    I am using an Ajax-enabled RadCalendar.  The calendar is using SpecialDays to identify event dates on the calendar, and I am dynamically assigning the special days based on values I pull from my database when the control loads. All of this works as expected, and I see the desired css-decoration of the event dates.  However, I also give my user the option of changing his location via a drop-down.  When the user chooses a new location, the SelectedIndexChanged event is fired, and the database is re-queried for a new list of event dates. 

    I am trying to use this new list of event dates to re-build the SpecialDays list.  And, in fact, I am able to clear the current SpecialDays list, and populate it with the new dates.  However, I can’t get the new SpecialDays to display without refreshing the entire page.   How do I code this control so that the new SpecialDays list will display without doing a refresh?

    I am new to posting in your forums, so I am not sure what additional information you may need.  Let me know if you need any additional information.

    Thanks in advance!

  2. Pavlina
    Pavlina avatar
    6187 posts

    Posted 28 Jul 2011 Link to this post

    Hello Phil,

    Try setting AutoPostBack="true" for the RadCalendar and let me know if it makes any difference. Thus the page will postback each time you change the view hence the OnDayRender server-side event will be executed every time and the styles must be applied correctly.

    Kind regards,
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top