This is a migrated thread and some comments may be shown as answers.

[Solved] Row Double Clicked no longer working after upgrade

2 Answers 74 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mark Shaw
Top achievements
Rank 1
Mark Shaw asked on 18 Oct 2010, 04:53 PM
I just upgraded to 2010 q2 and my logic to handle the mouse double click on a row has stopped responding. This code is run during the rows loaded event.

Mouse.AddMouseUpHandler(e.Row,
                                   (s, args) =>
                                   {
                                       // Snag report run
                                       var reportRun = _GridView.SelectedItem as ReportRun;
                                       if (reportRun == null) return;
 
                                       // Only bubble if completed
                                       if (reportRun.Status != ReportRunStatus.Finished) return;
 
                                       if (args.ClickCount >= 3)
                                       {
                                           if (ModelOpened != null)
                                               ModelOpened(this, new ModelSelectedEventArgs {Model = _GridView.SelectedItem as ReportRun});
                                       }
                                       else
                                       {
                                           if (ModelSelected != null)
                                               ModelSelected(this, new ModelSelectedEventArgs {Model = _GridView.SelectedItem as ReportRun});
                                       }
                                   },
                                   false);

2 Answers, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 19 Oct 2010, 01:14 PM
Hello Mark Shaw,

We have made some modifications in the event handling and RadGridView handles the MouseLeftButtonUp and MouseLeftButtonDown events. So, if you want to manage them, you can try the second overload method of AddMouseUpHanlder and set the third parameter to "true":

public static void AddMouseUpHandler(UIElement element, EventHandler<MouseButtonEventArgs> handler, bool handledEventsToo)


Best wishes,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Mark Shaw
Top achievements
Rank 1
answered on 19 Oct 2010, 06:23 PM
Perfect. Thanks.
Tags
GridView
Asked by
Mark Shaw
Top achievements
Rank 1
Answers by
Maya
Telerik team
Mark Shaw
Top achievements
Rank 1
Share this question
or