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
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;
}
}
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