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

MouseLeftButtonDownEvent

7 Answers 86 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Guillaume
Top achievements
Rank 1
Guillaume asked on 27 Jun 2011, 11:09 AM
Hello,
when I define a viewDefinition on a scheduleView control I am unable to catch the MouseLeftButtonDown event. I can still catch MouseLeftButtonUp or MouseWheel so I think it is some strange behaviour. When I don't set any viewDefinition, the event fires and can be caught properly.Do you have any tip so I can catch the event I wish ? Thank you.

EDIT 28/06/2011 : I managed to catch the event mouseleftbuttondown on the template of the timeruler. Because in fact it is here that I needed it only.

7 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 29 Jun 2011, 10:06 AM
Hi Guillaume,

We are glad that you resolved the issue yourself. This is the correct way for achieving this.

Kind regards,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
TEC
Top achievements
Rank 2
answered on 05 Oct 2011, 01:14 PM
Hi guys,

Is there a way to catch the MouseLeftButtonDown(or Up) on an AppointmentItem? I have tried the following, but it doesn't work.

.......
appointmentItem.MouseLeftButtonUp += HandleMouseLeftButtonUp;
.......
private void HandleMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{ ..... }
.......


Strangely the same construction works fine for the MouseRightButtonUp.

Please advise? 

Kind regards
0
Konstantina
Telerik team
answered on 07 Oct 2011, 01:30 PM
Hello Tec,

Could you please share with us what exactly you are trying to achieve? Giving us some more details about your scenario will help us provide you with the best solution for your case.

All the best,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
TEC
Top achievements
Rank 2
answered on 12 Oct 2011, 06:57 AM
Hi,

The scenario that I am trying to achieve is that I want to show a window (or other control) after selecting an appointment in the RadScheduleView.MonthView (not by mouse right click, only the left mouse click). Before showing this window, the RadScheduleView's 
AppointmentSelectionChanged event should already have been triggered. 

I hope this is clear enough.

Kind regards 
0
Konstantina
Telerik team
answered on 13 Oct 2011, 02:29 PM
Hi Tec,

Sorry, I couldn't get you right, what is the obstacle in showing your window in the SelectionChanged event? This is the one, which suits best. Could you please elaborate on your scenario.

Kind regards,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
TEC
Top achievements
Rank 2
answered on 13 Oct 2011, 02:33 PM
Hi,

The AppointmentSelectionChange event is also triggered when right clicking on an appointment. I only want to act (show the window) on the left click.

I hope this is clear enough.

Please advise and 
Kind regards 
0
Konstantina
Telerik team
answered on 17 Oct 2011, 04:51 PM
Hello Tec,

I can suggest you the following work around:
- create a boolean variable which will be false by default. Set it to true when the MouseRightButtonDown event is fired
- check in the AppointmentSelectionChanged whether the variable is true, and if so, don't do anything, that will mean that the right button is clicked. If it is false, show the window.

Hope this will help.

All the best,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
ScheduleView
Asked by
Guillaume
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
TEC
Top achievements
Rank 2
Share this question
or