I'm testing out using the menu datasource attribute for creating my initial menu "scaffolding". I have one separator with a specific id, which I will insert items before or after (depending on the item type).
When I test this, both items are inserted *after* my separator:
I've also included a link to a jsfiddle demonstrating this: http://jsfiddle.net/raltman/qYtPC/4/
Please take a look and let me know what is wrong here.
Thanks.
When I test this, both items are inserted *after* my separator:
$("#menu").kendoMenu({ orientation: "vertical", dataSource: [{ // Separator with unique id text: "<li id='main_separator'/>", encoded: false, enabled: false, cssClass:"menuItemSeparator MultipanelMenuSeparatorStyle", }, { enabled: false, cssClass: "menuItemSeparator MultipanelMenuSeparatorStyle", }, { text: "<input type='text' id='textbox' maxlength='256'/>", encoded: false, cssClass: "text k-textbox", }]});var viewMenu = $("#menu").data("kendoMenu");viewMenu.insertBefore({text:"Layout1",cssClass:"menuItemLayout MultipanelMenuItemStyle"}, $("#main_separator"));viewMenu.insertAfter({text:"Preference1",cssClass:"menuItemPref MultipanelMenuItemStyle"}, $("#main_separator"));Please take a look and let me know what is wrong here.
Thanks.
