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

drag drop and double click

2 Answers 106 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Park
Top achievements
Rank 1
Park asked on 25 Apr 2011, 09:02 AM
hi

when i  Appointment drag drop, fire on rsvScheduler_AppointmentEditing event
and Appointment double click, fire on rsvScheduler_AppointmentEditing event
how can i do diff action catch?

2 Answers, 1 is accepted

Sort by
0
Accepted
Rosi
Telerik team
answered on 25 Apr 2011, 10:58 AM
Hello Park,

There is no way to detect what causes the AppointmentEditing event. If you need to execute diferent logic on drag drop and on double click I suggest you implement a custom DragDropBehavior for the drag and drop operation. For double click - you can implement your logic on ShowDialog event. More information about this event you can read below:
  • ShowDialog - occurs when a scheduleView dialog is about to be shown. The ShowDialog event handler receives two arguments:
  1. The sender argument contains the RadScheduleView. This argument is of type object, but can be cast to the RadScheduleView type.
  2. An ShowDialogEventArgs object. Via the ShowDialogEventArgs you can access the following properties:
    • DialogViewModel -  gets the scheduler dialog. The property can be cast to the following types:

      1. AppointmentDialogViewModel
      2. RecurrenceChoiceDialogViewModel
      3. RecurrenceDialogViewModel
      4. ConfirmDialogViewModel

    • Cancel - set this boolean property to True, when you want to cancel the event.


Hope this helps.

Regards,
Rosi
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
Park
Top achievements
Rank 1
answered on 25 Apr 2011, 03:52 PM
hi Rosi

Thank you
Tags
ScheduleView
Asked by
Park
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Park
Top achievements
Rank 1
Share this question
or