Hi !
I have a RadGridView with attached OnDragInitialize event handler.
When I try to scroll the gridview's scrollviewer then the event is triggered.
How may I disable this?
I've tried this solution:
The event isn't triggered anymore but the scrollviewer won't move at all.
thanks,
Idan
I have a RadGridView with attached OnDragInitialize event handler.
When I try to scroll the gridview's scrollviewer then the event is triggered.
How may I disable this?
I've tried this solution:
public
void
Rad_OnDragInitialize(
object
sender, Telerik.Windows.DragDrop.DragInitializeEventArgs e)
{
RadGridView itemsControl = (RadGridView)sender;
ScrollViewer scroll = UIHelpers.GetScrollViewer(itemsControl)
as
ScrollViewer;
GridViewVirtualizingPanel presenter = UIHelpers.GetItemsPresenter(itemsControl);
if
(presenter !=
null
&& scroll !=
null
&& scroll.IsMouseOver && !presenter.IsMouseOver)
{
return
;
}
.............
The event isn't triggered anymore but the scrollviewer won't move at all.
thanks,
Idan