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

Dynamic SpecialDays

1 Answer 48 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 1
Phil asked on 24 Jul 2011, 06:53 PM

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!

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 28 Jul 2011, 09:14 AM
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,
Pavlina
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.

Tags
Calendar
Asked by
Phil
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or