Radcalendar : RadCalendar1_DefaultViewChanged

2 posts, 0 answers
  1. Vipin
    Vipin avatar
    7 posts
    Member since:
    Jun 2009

    Posted 13 Jun 2009 Link to this post

    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
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 15 Jun 2009 Link to this post

    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.
Back to Top