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

Q3 MouseDown

1 Answer 121 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tony Drake
Top achievements
Rank 1
Tony Drake asked on 19 Nov 2009, 03:07 AM
I don't see anything in the readme for the Q3 controls, (no breaking changes) about MouseDown in the grid view...
I'd been using a late Beta from late Oct or early Nov witthout issues.

Installed the Q3 as we were heading into user acceptance testing tomorrow, and wanted to be off the beta. As I'd used a late beat, I'd assumed that the only coding changes would be bug fixes, as beta's shouldn't have funcationality changes (that's an alpha for me!!)Now my UI which used MouseDown extensivally is no longer working. Mouse down works for the right mouse still, but not left. No compile error and the MouseLeftButtomDown doesn't work either!!

So how do I capture a simple click event in my UI!! I've only got DoubleClick, but this is WPF, bit winform, and users are used to using just a simple click to perform tasks. I don't want to use any code behind events, and I have this UI pattern in dozens of grids, and to refactor would take too long.

 

<telerik:RadGridView Grid.Column="1"
Grid.Row="1"

 

Grid.ColumnSpan="2"

 

 

 

Name="telerikRadGridView1"

 

 

 

AutoGenerateColumns="False"

 

 

 

IsReadOnly="True"

 

 

 

ItemsSource="{Binding Source={StaticResource BLWeighCarrierList}}"

 

 

 

DataLoaded="telerikRadGridView1_DataLoaded"

 

 

 

MouseLeftButtonDown="telerikRadGridView1_MouseLeftButtonDown"    (Doesn't work)

 

 

 

MouseDown="telerikRadGridView1_MouseDown"                                    (Doesn't work)

 

 

 

MouseDoubleClick="telerikRadGridView1_MouseDoubleClick"                (Don't want to use)

 

 

  

 

 

 

 


I'll go back to the BETA for now.

 

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 19 Nov 2009, 10:13 AM

Hello Tony Drake,

Could you please take a look at this forum thread .

Our cells are now handling several mouse events like MouseUp/MouseDown and that is the reason for the changed behavior. We are thinking of ways to mitigate the problem but for now all events handlers that are specified in XAML should be moved to code-behind and the AddHandler (with the third argument set to true)  method should be used to subscribe to events.

Sorry for the inconvenience.


Greetings,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Tony Drake
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or