Week to day mode redirection

6 posts, 1 answers
  1. Hardik
    Hardik avatar
    61 posts
    Member since:
    Jun 2011

    Posted 23 Jun 2011 Link to this post

    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
  2. Answer
    Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 28 Jun 2011 Link to this post

    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
  3. Hardik
    Hardik avatar
    61 posts
    Member since:
    Jun 2011

    Posted 01 Jul 2011 Link to this post

    Can you please provide sample ? I am not able to understand how to use it.

    Thanks
    H@rdikPancholi
  4. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 05 Jul 2011 Link to this post

    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
  5. Hardik
    Hardik avatar
    61 posts
    Member since:
    Jun 2011

    Posted 06 Jul 2011 Link to this post

    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
  6. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 07 Jul 2011 Link to this post

    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!

Back to Top