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

Cannot get the Calendar Display to change

2 Answers 60 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 08 Nov 2010, 12:51 PM
I'm creating a page not completely unlike this demo. Like the demo I have a RadCalendar displayed that the user uses for quick navigation in the RadScheduler.

I've got things set up so when they change the view in the Calendar, the Scheduler updates. I want to do the reverse, so that when the user navigates directly in the Scheduler, the Calendar view updates.

I've got this in my code-behind ...
protected void RadScheduler1_NavigationComplete(object sender, SchedulerNavigationCompleteEventArgs e)
{
    RadCalendar1.SelectedDate = RadScheduler1.SelectedDate;
}

and the AjaxSettings on the page include this ...
<telerik:AjaxSetting AjaxControlID="RadScheduler1">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="RadScheduler1"
                                    LoadingPanelID="RadAjaxLoadingPanel1"/>
        <telerik:AjaxUpdatedControl ControlID="RadCalendar1"
                                    LoadingPanelID="RadAjaxLoadingPanel1"/>
    </UpdatedControls>
</telerik:AjaxSetting>

Now I know that you have made no provision for this update in your demo, but when I run my code, I can see the selected date in the Calendar being updated (I've got EnableMultiSelect="False" BTW) but the Calendar display simply refuses to change. I can also see that the Ajax update is working 'cos the LoadingPanel displays.

I suppose I'm looking for an equivalent to Rebind() or somesuch to get the Calendar to redraw. 

What am I missing?

-- 
Stuart


2 Answers, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 11 Nov 2010, 02:38 PM
Hello Stuart ,

In this scenario I would suggest you to set also FocusDate for the RadCalendar control and verify if the Calendar display will change.


Kind regards,
Maria Ilieva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Stuart Hemming
Top achievements
Rank 2
answered on 11 Nov 2010, 09:43 PM
Maria,

Nice.

--
Stuart
Tags
Calendar
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Maria Ilieva
Telerik team
Stuart Hemming
Top achievements
Rank 2
Share this question
or