In-place Editor touchscreen not working

2 posts, 0 answers
  1. bledar
    bledar avatar
    7 posts
    Member since:
    Mar 2015

    Posted 27 Apr 2015 Link to this post

    Hi,

    I am trying to use the in-place Editor (DayView) in a Tablet(Lenove ThinkPad with Windows 8.1) , when I am trying to select many rows or cells( one rows or cell means one hour) for Example from 5 am to 11 am with finger touchscreen its select only one row that means only one hour, how can I select more than

    a row(Hour) using touchscreen  ANY SOLUTION???

    regards,

    Bledar

  2. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 29 Apr 2015 Link to this post

    Hello Bledar,

    Thank you for writing.

    This is not supported out of the box but can be implemented (the pan gesture is used for scrolling). For example you can use the PressAndTapGesture event to select several cells:
    void sch_PressAndTapGesture(object sender, Telerik.WinControls.PressAndTapGestureEventArgs e)
    {
        scheduler.SelectionBehavior.ResetSelection();
        var shedulerCell = scheduler.SchedulerElement.ElementTree.GetElementAtPoint(e.Location) as SchedulerCellElement;
        var endCell = scheduler.SchedulerElement.ElementTree.GetElementAtPoint(new Point(e.Location.X + e.Delta.X, e.Location.Y + e.Delta.Y)) as SchedulerCellElement; ;
        if (shedulerCell != null && endCell.Date!= null)
        {
             
            scheduler.SelectionBehavior.SelectCell(shedulerCell, false);
            scheduler.SelectionBehavior.SelectCell(endCell, true);
            
        }
    }

    More information is available in the following article: Touch Support.

    I hope this helps.

    Regards,
    Dimitar
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top