Categories | Question details Back To List | ||
dhtmlxmenu - TypeError: polygon is undefined why do i keep getting this error when adding items to context menu: TypeError: polygon is undefined code always crashes with the above error when calling the addNewSibling or addNewChild methods! am i missing js files or doing something wrong? code snippet: this.grid.enableContextMenu(this.menu); this.menu.renderAsContextMenu(); this.menu.setOpenMode("web"); this.menu.setImagePath(this.ROOT_RESOURCE_PATH+"dhtmlx/dhtmlxMenu/sources/imgs/dhxmenu_dhx_blue/"); this.menu.setIconsPath(this.IMAGE_RESOURCE_PATH); this.menu.addContextZone(this.grid.entBox.id) //this.menu.addNewSibling(null,"add","Add Succursale",false,"",""); /*this.menu.addNewSibling(null, "new", i18n["new"], false); // adding the first item to the menu, "nextToId" Answer posted by Alex (support) on Jun 08, 2009 01:11 Hello, the first element must be added as a child: this.menu.addNewChild(this.menu.topId,0,"add","Add Succursale",false); |