MouseLeftButtonDownEvent

8 posts, 0 answers
  1. Guillaume
    Guillaume avatar
    1 posts
    Member since:
    May 2011

    Posted 27 Jun 2011 Link to this post

    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.
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 29 Jun 2011 Link to this post

    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
  3. DevCraft banner
  4. TEC
    TEC avatar
    9 posts
    Member since:
    Aug 2009

    Posted 05 Oct 2011 Link to this post

    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
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 07 Oct 2011 Link to this post

    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 >>
  6. TEC
    TEC avatar
    9 posts
    Member since:
    Aug 2009

    Posted 12 Oct 2011 Link to this post

    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 
  7. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 13 Oct 2011 Link to this post

    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 >>
  8. TEC
    TEC avatar
    9 posts
    Member since:
    Aug 2009

    Posted 13 Oct 2011 Link to this post

    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 
  9. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 17 Oct 2011 Link to this post

    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 >>
Back to Top
DevCraft banner