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

Week to day mode redirection

5 Answers 91 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Hardik
Top achievements
Rank 1
Hardik asked on 23 Jun 2011, 02:38 PM
Hello Telerik,

As I have seen your demo of schedulView, My requirement is same like month to day mode redirection.

When I click in week mode for create the appointment at that time it would be redirected to that particular day.

For exapmle,

Week start from 19th june and end on 25th june. Now in week mode click on some random time let's assume 2:00 pm in 21st date colounm at that time instead of opening the appointment creating view I want to redirect to that day(21st june) .

I had customize scheudleView control. On clicking of timeslot I cancel the default view opening of scheudleView by e.cancel = true event and my own view is open.

For some conditions I also cancel the opening of my view for create appointment and at that time I want to redirect to day mode from week mode.

Any easy and fast solution possible? Can you provide some example?

Thanks
H@rdik Pancholi

5 Answers, 1 is accepted

Sort by
0
Accepted
Konstantina
Telerik team
answered on 28 Jun 2011, 03:32 PM
Hello Hardik,

For redirecting to the DayView you can use the RadScheduleViewCommands class and particularly the SetDayViewMode command. It will redirect the view to DayView.

Hope this information helps.

Regards,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Hardik
Top achievements
Rank 1
answered on 01 Jul 2011, 02:06 PM
Can you please provide sample ? I am not able to understand how to use it.

Thanks
H@rdikPancholi
0
Konstantina
Telerik team
answered on 05 Jul 2011, 11:42 AM
Hi Hardik,

In order to execute the command you have to write the following code, put for example in the Click event handler of a Button:

private void Button_Click(object sender, RoutedEventArgs e)
{
    RadScheduleViewCommands.SetDayViewMode.Execute(null, scheduleView);
}

Hope this helps.

Regards,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Hardik
Top achievements
Rank 1
answered on 06 Jul 2011, 02:16 PM
Hi support,

Thanks for reply. This is not working in my case. My requirement is from week to day mode redirection but with particular date.

With this command redirection done to current day(Monday or Tuesday or Wednesday etc...)

I want to redirection to particular date. Like if week 3 to 9 and i click on 6 th date. then it should be redirected to 6th . If I click on 8th then redirection to 8th like this.


Thanks
h@rdik Pancholi
0
Valeri Hristov
Telerik team
answered on 07 Jul 2011, 08:04 AM
Hello Hardik,

The first parameter of the Execute method of the SetDayViewMode command is the date that should become current after the redirect is made.

Greetings,
Valeri Hristov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
ScheduleView
Asked by
Hardik
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Hardik
Top achievements
Rank 1
Valeri Hristov
Telerik team
Share this question
or