Doubleclick event

2 posts, 0 answers
  1. Lasse
    Lasse avatar
    21 posts
    Member since:
    Jul 2011

    Posted 17 Nov 2011 Link to this post


    I'm using the radCalendar control. When i doubleclick a date, i want to add the clicked date to a collection.
    The problem is that i don't know if it is a date or some other place on the control I have double clicked, eg. when i click on the arrows to change month, if i do this to fast, the control fires a  "double click" event.

    Is there any way to decide if i clicked a date or some other place on the control? 

    Svein Thomas
  2. Ivan Todorov
    Ivan Todorov avatar
    688 posts

    Posted 18 Nov 2011 Link to this post

    Hello Svein Thomas,

    Thank you for contacting us.

    You can achieve this by subscribing to the MouseDoubleClick event of RadCalendar and handle it as it is demonstrated below:

    private void radCalendar1_MouseDoubleClick(object sender, MouseEventArgs e)
        CalendarCellElement cell = (this.radCalendar1.ElementTree.GetElementAtPoint(e.Location) as CalendarCellElement);
        if (cell != null && !cell.VisualState.Contains("Header"))

    Should you have any further questions, feel free to ask. Best wishes,
    Ivan Todorov
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

  3. DevCraft R3 2016 release webinar banner
Back to Top