Disiable context menu/ add radcontextmenu

3 posts, 1 answers
  1. Marcin
    Marcin avatar
    165 posts
    Member since:
    Jan 2011

    Posted 05 Sep 2012 Link to this post

    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. Answer
    Yana
    Admin
    Yana avatar
    4554 posts

    Posted 10 Sep 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Marcin
    Marcin avatar
    165 posts
    Member since:
    Jan 2011

    Posted 08 Oct 2012 Link to this post

    thank you
Back to Top