RADScheduler diplay modes

3 posts, 0 answers
  1. Ken Walker
    Ken Walker avatar
    5 posts
    Member since:
    Sep 2007

    Posted 15 Jan 2009 Link to this post

    Hi,

    We are using the RADScheduler control and like to display scheduler in different modes like month, week, day or event view through the links/URL, please suggest how to achieve this functionality as the URL is same for all the views.

    Your early response will be highly appreciated.

    Thanks
    Ken
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 15 Jan 2009 Link to this post

    Hi Ken,

    One posible solution is to use query strings. For example, generate your url with the following format:

    http://localhost/WebSite53/Default4.aspx?SelectedView=MonthView

    In page load get the value of the query string and set the SelectedView of RadScheduler accordingly:
    protected void Page_Load(object sender, EventArgs e)  
        {         
            if (!IsPostBack)  
            {  
                string selectedView = Request.QueryString["SelectedView"];  
                switch (selectedView)  
                {  
                    case "DayView":  
                        RadScheduler1.SelectedView = SchedulerViewType.DayView;  
                        break;  
                    case "WeekView":  
                        RadScheduler1.SelectedView = SchedulerViewType.WeekView;  
                        break;  
                    case "MonthView":  
                        RadScheduler1.SelectedView = SchedulerViewType.MonthView;  
                        break;  
                    case "TimelineView":  
                        RadScheduler1.SelectedView = SchedulerViewType.TimelineView;  
                        break;                 
                    default:  
                          
                        break;  
                }  
              
            }         
              
        } 


    Kind regards,
    Peter
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Eric D. Burdo
    Eric D. Burdo avatar
    1 posts
    Member since:
    Sep 2011

    Posted 30 Oct 2013 Link to this post

    You can also use a Session Variable...

    Something like this works:

    Store the View in the Session.

    Session["SelectedView"] = Telerik.Web.UI.SchedulerViewType.DayView;

     

    Retrieve the View from the Session.

     

    radScheduler.SelectedView = (SchedulerViewType)Session["SelectedView"];
Back to Top