Forums / Developing with Sitefinity / Events Module - Setting default view

Events Module - Setting default view

2 posts, 0 answered
  1. brett
    brett avatar
    1 posts
    Registered:
    30 Oct 2006
    06 Mar 2009
    Link to this post

    I have 2 questions related to the Events ScheduleView, 1 of which may fall into the "bug" category.

    1.) Is there any way to turn off certain views so that my users only have access to the Month View? 

    2.) If not, is there a way to set the control so that the Month View is selected by default instead of the Day View?  I've tried using the property EventsScheduleView > EventsSchedule -> SelectedView property, setting it to MonthView.  This property doesn't seem to have any effect.  Could this be a problem with my installation?  Should this property set the MonthView as the view that is selected by default?

    As a general question, is there anywhere I can go where the purpose of each property of the controls is documented? 

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16058 posts
    Registered:
    24 Sep 2012
    06 Mar 2009
    Link to this post
    Hi brett,

    1.) Is there any way to turn off certain views so that my users only have access to the Month View? 

    You can try using css to hide some of the modes( this will hide week mode - you need to use a custom skin and set EnableEmbeddedSkins to false).

    .RadScheduler_Scheduler .rsHeaderWeek 
        display:none !important; 

    Using ShowNavigationPane and ShowViewTabs properties, you can restrict the user's ability to alter the view or date displayed, or you can provide an alternate method of changing these by adding your own controls to the web page. If you hide the navigation pane, you can still control the date displayed in the scheduler using the SelectedDate property. If you hide the view tabs, you can still control the view displayed in the scheduler using the SelectedView property.

    <telerik:RadScheduler ID="eventsSchedule" runat="server" SelectedView="DayView" ShowViewTabs="false"
    ( this way require to map the external template for EventsSheduleView cotntrol)

    2. If not, is there a way to set the control so that the Month View is selected by default instead of the Day View?  I've tried using the property EventsScheduleView > EventsSchedule -> SelectedView property, setting it to MonthView.  This property doesn't seem to have any effect.  Could this be a problem with my installation?  Should this property set the MonthView as the view that is selected by default?

    I figured out that the property setting does not apply through Sitefinity UI. If you map the external control template you will be able to manage the required properties. Another way is adding RadScheduler to your web.config toolbox section.

    More information for the properties and RadScheduler control can be found at http://www.telerik.com/help/aspnet-ajax/scheduleroverview.html

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered