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

How to disable default Ctrl+V paste behavior

2 Answers 130 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Vic
Top achievements
Rank 1
Iron
Vic asked on 25 Oct 2012, 01:28 AM
Hello,

I'm looking for a way to disable the default Ctrl+V behavior, which simply creates a blank appointment (bypassing all validation).  I tried defining my own command bindings to override the default behavior as exemplified in the sample project included in this post  http://www.telerik.com/community/forums/silverlight/scheduleview/copy-paste-appointment.aspx;  however, I cannot find the appropriate namespace for CommandManager.SetCommandBindings().  System.Windows.Input.CommandManager does not contain a definition for SetCommandBindings, and I cannot find CommandManager under Telerik.Windows.Controls.   Likewise, when specifying <telerik:CommandManager.InputBindings> in XAML, I get 'The attachable property InputBindings was not found in type CommandManager'.  Am I missing something or is this only meant to work in Silverlight? 

I'm using the latest Q3 release.

Thanks in advance..
Vic

2 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 29 Oct 2012, 12:45 PM
Hi Vic,

The example in the forum is applicable only to Silverlight. Have you tried to disable the inline appointment editing (by setting IsInlineEditingEnabled property of the ScheduleView to false)? This should prevent the pasting behavior.

Regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Vic
Top achievements
Rank 1
Iron
answered on 29 Oct 2012, 01:40 PM
Thanks, Yana.  That seems to do the trick!
Tags
ScheduleView
Asked by
Vic
Top achievements
Rank 1
Iron
Answers by
Yana
Telerik team
Vic
Top achievements
Rank 1
Iron
Share this question
or