Stick appointment times to the grid while resizing them or moving them...

5 posts, 1 answers
  1. Jonx
    Jonx avatar
    258 posts
    Member since:
    Jul 2012

    Posted 28 Feb 2011 Link to this post

    Hello,
    How can I make the appointments sticks to the grid while using the mouse to resize or move them around?
    I would like them to stick to a quarter of an hour for exemple. Goind to the minute is cool but not in my case...
    How can I do that, thanks.
    John.
  2. Answer
    Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 01 Mar 2011 Link to this post

    Hello John,

    You can set this property: 
    SnapAppointments = "True"
    This will make the appointment resize exactly to the grid. So you need to set MinorTickLenght to 15 minutes and the appointments will resize/move to a quarter of an hour.

    Don't hesitate to contact us if you have other questions.


    All the best,
    Boyan
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. DevCraft banner
  4. Jonx
    Jonx avatar
    258 posts
    Member since:
    Jul 2012

    Posted 01 Mar 2011 Link to this post

    Thanks it's working but strangely this is a global parameter. Why not have this possible per view?
    Thanks again...
    John.
  5. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 03 Mar 2011 Link to this post

    Hi John,

    We will consider changing the behavior so this property will be per view. As a workaround you can create a Converter where to return true and false for the SnapAppointments property according to the ActiveViewDefinition. The XAML will be something like this:
    SnapAppointments = {Binding ActiveViewDefinition, Converter={StaticResource MyConverter}}


    Regards,
    Boyan
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  6. Jonx
    Jonx avatar
    258 posts
    Member since:
    Jul 2012

    Posted 03 Mar 2011 Link to this post

    Ok, works for me...
    Thank you Boyan,
    John.
Back to Top
DevCraft banner