ContextMenu appendTo false documentation

2 posts, 0 answers
  1. Edo
    Edo avatar
    87 posts
    Member since:
    Jul 2015

    Posted 10 Aug 2016 Link to this post

    Here writes: 

    With regard to the CSS selectors or element discovery via Javascript, take into account that, by default, the ContextMenu is created as a child of the<body> element. This behavior is configurable via the appendTo setting.

    but appendTo links to window appendTo documentation. ContextMenu documentation does not document appendTo configuration. TypeScript declaration file for interface ContextMenuOptions is also missing appendTo property.

    Which documentation is wrong (Widgets or Javascript and TypeScript)? Quick look into source (2016.2.504) tells me that appendTo does not exists on ContextMenu.

  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2312 posts

    Posted 11 Aug 2016 Link to this post

    Hello Matjaž,

    Thank you for pointing this. The linked paragraph on the documentation page is wrong as it links the Window's appendTo property. The Kendo UI Context Menu does not have such property and is always appended as child of the <body>.

    Please excuse us for the inconvenience. I will forward the problem to the documentation team.

    Dimiter Madjarov
    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top