Completed
Last Updated: 03 Oct 2019 11:50 by ADMIN
Release R3 2019 SP1 (LIB 2019.3.1007)
Andrea
Created on: 30 May 2019 12:49
Category: Scheduler/Reminder
Type: Bug Report
1
RadScheduler: scheduler is moving start cell on mouse down

Hi,

using a RadScheduler into a desktop application. It seems like, on mouse-down event happening into a cell of the first row, the grid of the scheduler is shifting down of a row, resulting in the mouse handle being on the previous row's cell. No mouse wheel scrolled, no other mouse movement. Just one left-click. The result is that on mouse-up we are in a different cell and our event-handler is getting confused.

Sorry for not having any code snippet, I just attach a video of what's happening. Consider that I have only positioned the mouse on the cell at 8am and left-clicked. Tested also with version 2019.2.508 (even though in our app we are still using 2016.2.608).

Thanks in advance and best regards,

Emanuele Nava
Apogeo srl
Italy

 

3 comments
ADMIN
Dess | Tech Support Engineer, Sr.
Posted on: 31 May 2019 05:43
Hello, Emanuele,     

The provided sample video was really helpful. It helped me to understand better the exact undesired behavior that you are facing. I was able to observe the same behavior on my end with the specified version: 2016.2.608 and with the latest version as well. 

After further investigation, I can confirm that when you click a certain cell, it gets selected and the SchedulerInputBehavior ensures that this cell is visible. That is why the view is scrolled a little bit. Indeed, the scrolling is a bit confusing when the entire cell is actually visible.

I have logged it in our feedback portal by making this thread public. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

I have also updated your Telerik points.

Currently, the possible solution that I can suggest is to handle the MouseDown execution and scroll to the selected cell: 

this.radScheduler1.SchedulerInputBehavior = new CustomSchedulerInputBehavior(this.radScheduler1);

 

public class CustomSchedulerInputBehavior : SchedulerInputBehavior
{
    public CustomSchedulerInputBehavior(RadScheduler scheduler) : base(scheduler)
    {
    }
 
    public override bool HandleMouseDown(MouseEventArgs args)
    {
        SchedulerDayViewElement dayViewElement = this.Scheduler.SchedulerElement.ViewElement as SchedulerDayViewElement;
        int scrollValue = dayViewElement.DataAreaElement.ScrollView.VerticalScrollBar.Value;
        bool result = base.HandleMouseDown(args);
        dayViewElement.DataAreaElement.Table.ScrollToTime(new TimeSpan(this.Scheduler.SelectionBehavior.GetSelectedInterval().Start.Hour,0 ,0));
        return result;
    }
}

I hope this information helps.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Attached Files:
Andrea
Posted on: 30 May 2019 14:10

Hello Dess,

thanks for your prompt reply and included sample, appreciated. I was able to reproduce somehow the problem on my end with your sample too. I guess it's all a matter of coords at real 0, something like > instead of >=... but that's really just a bet of a software developer :-)

If you look at my new video: I scroll up to 0:00 by mouse wheel so that the grid is really aligned to 0, then I clicked a cell at 0:00, so that I start at real 0. Then I moved down the grid only through mouse wheel. Every single wheel movement is moving me down by an entire cell. When I reach 9:00 I click that cell and you might see the behavior I get.

Our application is more or less doing the same. We programmatically move the grid at office start-time (configured parameter, usually 8:00), so our scheduler is showing that row, probably aligned at real 0... And there the problem starts..

Can you reproduce this behavior on your end?

Thanks,
Emanuele

ADMIN
Dess | Tech Support Engineer, Sr.
Posted on: 30 May 2019 13:34
Hello, Emanuele,     

The provided sample video is greatly appreciated. I have created a sample project to test the illustrated behavior on my end with the specified version 2016.2.608. It seems that the cell under the mouse is properly selected on my end. Please refer to the attached gif file. If the very first cell in the current view is not entirely visible and you click the cell, it gets selected and the view is scrolled to ensure the cell visibility. This is desired behavior. I haven't observed any incorrect cell selected when clicking. Am I missing something?

Could you please refer to the atatched sample project and give it a try to see how it works on your end? In you video, the view is scrolled to ensure that the clicked cell is entirely visible but it seems tht the correct cell is actually selected. Could you please confirm that?

I am looking forward to your reply. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.