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

RadCalendar Focused Date Problem

4 Answers 142 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Madhavi Yallapragada
Top achievements
Rank 1
Madhavi Yallapragada asked on 04 Oct 2011, 08:19 PM

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.

4 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 07 Oct 2011, 07:26 AM
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
0
Madhavi Yallapragada
Top achievements
Rank 1
answered on 07 Oct 2011, 12:39 PM
Thanks for the response. I got it worked by assigning the FocusedDate in the PreLoad event.

0
Darshit
Top achievements
Rank 1
answered on 23 Jul 2015, 05:04 AM

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 ..

0
Vasil
Telerik team
answered on 23 Jul 2015, 08:02 AM
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
Tags
Calendar
Asked by
Madhavi Yallapragada
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Madhavi Yallapragada
Top achievements
Rank 1
Darshit
Top achievements
Rank 1
Share this question
or