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

Radcalendar : RadCalendar1_DefaultViewChanged

1 Answer 90 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Vipin
Top achievements
Rank 1
Vipin asked on 13 Jun 2009, 10:46 AM
Hello Telerik Team  ,

Is there a way to call RadCalendar1_DefaultViewChanged on external Button  click  Server event .  I am not able to pass the parameters correctly.
Any Help will be Appreciated .

Thank You
Vipin

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Jun 2009, 06:38 AM
Hi Vipin,

I guess you want to change the month view of calendar from code behind. You can change the monthview by setting the FocusedDate property of RadCalendar as shown below.

CS:
 
protected void Button3_Click(object sender, EventArgs e) 
    RadCalendar1.FocusedDate = RadCalendar1.FocusedDate.AddMonths(-1); // Previous 
protected void Button2_Click(object sender, EventArgs e) 
    RadCalendar1.FocusedDate = RadCalendar1.FocusedDate.AddMonths(1); // Next 

-Shinu.
Tags
Calendar
Asked by
Vipin
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or