drag into scheduleview defualt size of appointment

2 posts, 0 answers
  1. guy
    guy avatar
    46 posts
    Member since:
    Sep 2010

    Posted 15 Oct 2012 Link to this post

    Hi
    when im draging from gridview to scheduleview the defualt size of appointment is 1h how can i change it to 30min
    i attached a file
  2. Ventzi
    Admin
    Ventzi avatar
    114 posts

    Posted 16 Oct 2012 Link to this post

    Hi Guy,

    In order to change the duration of the dropped appointment you will need to override the ConvertDraggedData() method in the ScheduleViewDragDropBehavior.

    We do not have a sample project with drag and drop functionality between GridView and ScheduleView but we have one between ListBox and ScheduleView controls. The approach used in that project is the same as the one you should use with GridView and ScheduleView.

    We attached the project for you to take a look at. In it you will need to change the logic in the ConvertDraggedData() method in the ScheduleViewDragDropBehavior.cs file in order to make it work with GridView.

    If you have any followup questions do not hesitate to contact us again.

    Kind regards,
    Ventzi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top