Mouse Left Button down not work

2 posts, 0 answers
  1. senthil
    senthil avatar
    5 posts
    Member since:
    Jan 2011

    Posted 01 Mar 2011 Link to this post

    Hi

    I am Using RadPanelbar but MouseLeftButtondown event  is not working

    Regards
    S.SenthilNathan
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 03 Mar 2011 Link to this post

    Hello senthil,

    The MouseLeftButtonDown is handled by other events. So you have to use theUIElement.AddHandler method like so:
    public MainPage()
            {
                InitializeComponent();
                this.panelBar.AddHandler(RadPanelBar.MouseLeftButtonDownEvent, new MouseButtonEventHandler(panelBar_MouseLeftButtonDown), true);
            }
      
            private void panelBar_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
            {
      
            }
    But, are you sure you need this event? Have you tried the new Click/ DoubleClick events of the RadPanelBar that are inherited from RadTreeView? You can find more info on this here.


    All the best,
    Petar Mladenov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. DevCraft banner
Back to Top