Smartclient 7.0rc4
Mozilla 3.6.8
I am trying to create contextMenu using autochild
As you can see there is a Main Panel which has a listgrid and a menu
we set menu as contextmenu(by using autochild) for the listgrid
But I see the following happening
1. Menu shows up in the main panel itself. On top or bottom in panel as ordered in initWidget of main panel
2. The menu never shows up in the listgrid rightclick.
3. I even tried removing and adding "this.addAutoChild("myMenu"); from initWidget" but it didn't help.
Help!
Mozilla 3.6.8
I am trying to create contextMenu using autochild
Code:
isc.VLayout.create({ ID: "MainPanel", myMenuDefaults: { _constructor: isc.Menu, ....... }, myListGridDefaults: { ... contextMenu: "autoChild:myMenu", .... }, initWidget: function() { this.Super("initWidget", arguments); this.addAutoChild("myMenu"); this.addAutoChild("myListGrid"); } });
we set menu as contextmenu(by using autochild) for the listgrid
But I see the following happening
1. Menu shows up in the main panel itself. On top or bottom in panel as ordered in initWidget of main panel
2. The menu never shows up in the listgrid rightclick.
3. I even tried removing and adding "this.addAutoChild("myMenu"); from initWidget" but it didn't help.
Help!
Comment