Show WeekView only on ScheduleView

4 posts, 0 answers
  1. Yana
    Yana avatar
    32 posts
    Member since:
    Aug 2011

    Posted 15 Aug 2011 Link to this post

    Hi, I would like to know on how to hide the Timeline, Day and Month Views on the ScheduleView having only the Week View as shown. Thanks


    Ayana
  2. Albert
    Albert avatar
    13 posts
    Member since:
    Dec 2010

    Posted 15 Aug 2011 Link to this post

    Hi Ayana,

    you can set the Viewdefinition like this:

                                            <telerik:RadScheduleView x:Name="ScheduleView">
                                                <telerik:RadScheduleView.ViewDefinitions>
                                                    <telerik:WeekViewDefinition Title="Week" />
                                                 </telerik:RadScheduleView.ViewDefinitions>
                                            </telerik:RadScheduleView>

    Albert
  3. DevCraft banner
  4. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 15 Aug 2011 Link to this post

    Or, you could directly set the ActiveViewDefinition property - this way the view selection buttons will not be displayed:

    <telerik:RadScheduleView x:Name="ScheduleView">
        <telerik:RadScheduleView.ActiveViewDefinition>
            <telerik:WeekViewDefinition Title="Week" />
        </telerik:RadScheduleView.ActiveViewDefinition>
    </telerik:RadScheduleView>

    Greetings,
    Valeri Hristov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  5. Yana
    Yana avatar
    32 posts
    Member since:
    Aug 2011

    Posted 15 Aug 2011 Link to this post

    I can't seem to see WeekViewDefinition, it only shows CustomViewDefinition.

    Attached is a screenshot of what I am seeing.
Back to Top