Cannot get the Calendar Display to change

3 posts, 1 answers
  1. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 08 Nov 2010 Link to this post

    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. Answer
    Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 11 Nov 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 11 Nov 2010 Link to this post

    Maria,

    Nice.

    --
    Stuart
Back to Top