This is a migrated thread and some comments may be shown as answers.
how stop AppointmentDialogWindow on double click
2 Answers 40 Views
This is a migrated thread and some comments may be shown as answers.
jasy
Top achievements
Rank 1
jasy asked on 16 Aug 2011, 12:17 AM
Hi ,

we dont want show AppointmentDialogWindow  on double click  .How can we do  that.


2 Answers, 1 is accepted

Sort by
0
Pete
Top achievements
Rank 1
answered on 08 Feb 2012, 09:42 AM
We also need to do this. We cannot cancel the dialog from the ShowDialog event handler because we need the dialog to show after a drag-drop operation.

Is this possible?

Thanks
0
Konstantina
Telerik team
answered on 15 Feb 2012, 01:23 PM
Hi guys,

In order to achieve this you need to edit the AppointmentItem's ControlTemplates. Using the AppointmentStyleSelector you have to edit the AppointmentItemHorizontalControlTemplate and AppointmentItemVerticalControlTemplate and remove the MouseBinding for the LeftDoubleClick:

<telerik:CommandManager.InputBindings>
                    <telerik:InputBindingCollection>
                        <telerik:MouseBinding Gesture="LeftDoubleClick" Command="local:RadScheduleViewCommands.EditAppointment" />
                    </telerik:InputBindingCollection>
                </telerik:CommandManager.InputBindings>

More information how to use the AppointmentStyleSelector you can find in this help article and in this online demo.

Hope this information helps.

Greetings,
Konstantina
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Asked by
jasy
Top achievements
Rank 1
Answers by
Pete
Top achievements
Rank 1
Konstantina
Telerik team
Share this question
or