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

Rad Scheduler SelectedView

1 Answer 116 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Chris Phelps
Top achievements
Rank 1
Chris Phelps asked on 25 Mar 2012, 11:00 PM
My version is 915, I'm not looking for help just wanted to let someone know.

What I'm doing is saving the users selection when a particular view is clicked, like day, week, month, etc.  The next time they are on the site I'm grabbing their previously selected view and using it, so for example, if the user prefers the month view, I want the program to remember that.


So, what I found is:

When setting the selected view with SchedulerViewType.TimelineView, Timeline View = 4.

When saving the selected view using SchedulerNavigationCommand.SwitchToTimelineView, Timeline View = 3.

My program crashes when on the next visit I try to set the SchedulerViewType.TimelineView to 3, because that's not a valid choice.

Just an FYI.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 26 Mar 2012, 01:20 PM
Hello Chris,

Thank you for your feedback.

Have you tried using the SchedulerViewType enum to specify the SelectedView property? Here is an example:
protected void Page_Load(object sender, EventArgs e)
        {
            RadScheduler1.SelectedView = SchedulerViewType.TimelineView;
        }



Greetings,
Peter
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
Chris Phelps
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or