Q3 GridView MouseLeftButtonDown event not fire

2 posts, 0 answers
  1. Jatin Aggarwal
    Jatin Aggarwal avatar
    6 posts
    Member since:
    Jul 2009

    Posted 14 Jan 2010 Link to this post

    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.
  2. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 14 Jan 2010 Link to this post

    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.
Back to Top