Navigation behavior

4 posts, 0 answers
  1. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 11 Nov 2015 Link to this post

    Hi,

     

    in my ScheduleView, I always completly fill it with Appointments and SpecialSlots for visual purpose, I mean, each SpecialSlot and Appointment contain a UserControl with a border. Each day contain at least 2 resources.

    I would like to implement a nivagtion behavior which consist of using the arrow keys to navigate through the SpecialSlots and Appointments and when the navigation behavior return a SpecialSlot or an Appointment, I would like to change the border color of the UserControl to indicate a new selected SpecialSlot or a new selected Appointment in the control.

     

    I would like to know how it's possible to do it...?

     

    Thank's

    Alain

  2. Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 16 Nov 2015 Link to this post

    Hello Alain,

    What we could suggest you in order to achieve the desired behavior of RadScheduleView is to subscribe to the KeyDown event of RadScheduleView. When an arrow key gets pressed the event will be fired and inside it you could implement your custom logic - to select the desired Slots and Appointments.

    However, if you need to modify the predefined and default behavior of the arrow keys you need to create a class of your own that inherits RadScheduleView and override the OnKeyDown method.

    Hope this helps.

    Regards,
    Nasko
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 30 Nov 2015 Link to this post

    Hi Nasko,

     

    can you provide me a small demo on how to handle the navigation through the SpecialSlots/Appointments?

     

    Thank's

    Alain

  5. Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 02 Dec 2015 Link to this post

    Hi Alain,

    Attached you could find a sample project that demonstrates the described in my previous response approach. 

    Please, check it and let us know if it worked for you.

    We hope this will help you.

    Regards,
    Nasko
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top