RadCalendar Focused Date Problem

5 posts, 0 answers
  1. Madhavi Yallapragada
    Madhavi Yallapragada avatar
    2 posts
    Member since:
    Apr 2010

    Posted 04 Oct 2011 Link to this post


    I am working with Telerik RadCalendar Control. Page has Month and Year dropdowns and I am setting the RadCalendars FocusedDate from Month and Year dropdowns on a button click event. RadCalendar is not rendering the dates on the calendar. It displays only the navigation. Day cells are empty.  The button has to be clicked twice in order to see the properly rendered calendar.
  2. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 07 Oct 2011 Link to this post

    Hi Madhavi,

    I tried to set a focused date for the calendar on button click and it is working fine.
    ASPX:
    <telerik:RadCalendar ID="RadCalendar2" runat="server"></telerik:RadCalendar>
    <asp:Button ID="Button1" OnClick="Button1_Click" runat="server" />
    C#:
    protected void Button1_Click(object sender, EventArgs e)
    {
        RadCalendar2.FocusedDate = DateTime.Now.AddDays(123);
    }

    Could you confirm that you set a valid date to focus?

    Regards,
    Vasil
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Madhavi Yallapragada
    Madhavi Yallapragada avatar
    2 posts
    Member since:
    Apr 2010

    Posted 07 Oct 2011 Link to this post

    Thanks for the response. I got it worked by assigning the FocusedDate in the PreLoad event.

  5. Darshit
    Darshit avatar
    1 posts
    Member since:
    Jul 2015

    Posted 23 Jul 2015 in reply to Madhavi Yallapragada Link to this post

    Hi team i am also doing the same thing i have two drop down 1 for year and another for Month and according to selection i have to focus my RadCalendar to that month but give solution is not understand 

    can you please help me ..

  6. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 23 Jul 2015 Link to this post

    Hello Darshit,

    Could you share your markup with us. I will review and correct it if needed.

    Regards,
    Vasil
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017