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

Default scheduleview (to week instead of day)

2 Answers 62 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 30 Aug 2011, 11:36 PM
Is there a better way to default what view the calendar starts off with besides the order in which you specify the ViewDefinitions?

            <telerik:RadScheduleView.ViewDefinitions>
                <my:DayViewDefinition ShowAllDayArea="True" />
                <my:WeekViewDefinition ShowAllDayArea="True"/>
                <my:MonthViewDefinition />
                <!--my:TimelineViewDefinition /-->  
            </telerik:RadScheduleView.ViewDefinitions>

I want the order in the GUI to stay "Day | Week | Month" (doesn't make visual sense to be Week | Day | Month).

Please no code behind.

-Markus

2 Answers, 1 is accepted

Sort by
0
Accepted
Valeri Hristov
Telerik team
answered on 31 Aug 2011, 07:38 AM
Hi Mark,

RadScheduleView has two properties that might be of help - ActiveViewDefinition and ActiveViewDefinitionIndex (the same pattern as in a ListBox).

Regards,
Valeri Hristov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Mark
Top achievements
Rank 1
answered on 01 Sep 2011, 04:42 PM
Thanks much!

I looked and looked but thought that this property was something else. Thanks for the awesome support!

<telerik:RadScheduleView Name="schTasks" VerticalAlignment="Top" Margin="0,34,0,0"
        AppointmentsSource="{Binding Visits}"
        MinAppointmentWidth="100"
        ActiveViewDefinitionIndex="1"
        >
            <telerik:RadScheduleView.ViewDefinitions>
                <my:DayViewDefinition ShowAllDayArea="True" />
                <my:WeekViewDefinition ShowAllDayArea="True"/>               
                <my:MonthViewDefinition />
                <!--my:TimelineViewDefinition /--> 
            </telerik:RadScheduleView.ViewDefinitions>
</telerik:RadScheduleView>
Tags
ScheduleView
Asked by
Mark
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Mark
Top achievements
Rank 1
Share this question
or