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

Mouse Left Button down not work

1 Answer 44 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
senthil
Top achievements
Rank 1
senthil asked on 01 Mar 2011, 11:11 AM
Hi

I am Using RadPanelbar but MouseLeftButtondown event  is not working

Regards
S.SenthilNathan

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 03 Mar 2011, 05:23 PM
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!
Tags
PanelBar
Asked by
senthil
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or