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

Show WeekView only on ScheduleView

3 Answers 70 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Yana
Top achievements
Rank 1
Yana asked on 15 Aug 2011, 08:46 AM
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

3 Answers, 1 is accepted

Sort by
0
Albert
Top achievements
Rank 1
answered on 15 Aug 2011, 10:11 AM
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
0
Valeri Hristov
Telerik team
answered on 15 Aug 2011, 11:35 AM
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 >>

0
Yana
Top achievements
Rank 1
answered on 16 Aug 2011, 03:58 AM
I can't seem to see WeekViewDefinition, it only shows CustomViewDefinition.

Attached is a screenshot of what I am seeing.
Tags
ScheduleView
Asked by
Yana
Top achievements
Rank 1
Answers by
Albert
Top achievements
Rank 1
Valeri Hristov
Telerik team
Yana
Top achievements
Rank 1
Share this question
or