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

Disiable context menu/ add radcontextmenu

2 Answers 24 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Marcin
Top achievements
Rank 1
Veteran
Marcin asked on 05 Sep 2012, 02:47 PM
Hello
I would like to create custom context menu for raddatetimepicker, using rad contextmenu. Hover I cannot asign it. It always diplaying default textbox contextmenu.

2 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 10 Sep 2012, 11:56 AM
Hello Marcin,

You should edit the template of the RadDateTimePicker - find RadWaterMarkTextBox with name "PART_DateTimeInput" and set its ContextMenu property like this:

<telerik:RadWatermarkTextBox x:Name="PART_DateTimeInput" ...>
    <telerik:RadWatermarkTextBox.ContextMenu>
        <ContextMenu Visibility="Collapsed" />
    </telerik:RadWatermarkTextBox.ContextMenu>
</telerik:RadWatermarkTextBox>

The easiest way to customize the template is using Implicit Styles.

Regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Marcin
Top achievements
Rank 1
Veteran
answered on 08 Oct 2012, 01:23 PM
thank you
Tags
DateTimePicker
Asked by
Marcin
Top achievements
Rank 1
Veteran
Answers by
Yana
Telerik team
Marcin
Top achievements
Rank 1
Veteran
Share this question
or