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

Q3 GridView MouseLeftButtonDown event not fire

1 Answer 33 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jatin Aggarwal
Top achievements
Rank 1
Jatin Aggarwal asked on 14 Jan 2010, 07:02 AM
Hi There
              We are shift to Q3 Controls but my MouseLeftButtonDown  on GridView doesn't fire. As i have seen the post where this event handle by mouse class of Telerik.Windows.Input namespace but we are not able to find this namespace, there may be version issue. We  use assemblies with  version [2009.3.1103.35]. Please reply me as soon as possible. and if possible submit a demo.

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 14 Jan 2010, 11:56 AM
Hi Jatin Aggarwal,

Our Mouse class is only available for our Silverlight  controls. For WPF you will have to use the AddHandler method and set its third argument to true to be able to handle already handled events. For example:

public Window1()
{
    InitializeComponent();
  
    this.playersGrid.ItemsSource = Club.GetPlayers();
    this.AddHandler(FrameworkElement.MouseLeftButtonDownEvent, new RoutedEventHandler(OnMouseLeftButton), true);
}
  
private void OnMouseLeftButton(object sender, RoutedEventArgs e)
{
      
}


Kind regards,
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
General Discussions
Asked by
Jatin Aggarwal
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or