iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
I wonder if anyone else has seen this behaviour?
I have a WebTreeView, which has a webcontextmenu. One of the menu items on the context menu has sub menu items.
I have some client code which evaluates the currently selected treeview node, and enables/disables the top level context menu items accordingly, which works fine. The same code also sets the sub menu items' visible property accordingly. This part only seems to work on the first showing of the context menu. On each subsequent visit to the context menu, the sub menu remains as it was when it was first displayed.
thanks
Hi Darren,
I manage to do your scenario on the WebTreeView and WebContextMenu, where on the first child node, I disable the first menu and on the second child node, I do hide the second submenu. However, I do not see any behaviour like you mentioned up there. As well as I tried it subsequently, the result is still same, it works properly. Here is the snippet:
function WebTreeView1_OnNodeContextMenu(controlId, node) { var WebTreeView1 = ISGetObject(controlId); var menu = ISGetObject("WebContextMenu1"); menu.Show(this.screenLeft + event.clientX, this.screenTop + event.clientY); window.event.returnValue = false; if (node.Text != null) { if (node.Text == "Image file") { menu.RootMenu.Items[0].Disable(); } else { menu.RootMenu.Items[0].Enable(); } if (node.Text == "PDF File") { menu.RootMenu.Items[1].Items[1].Hide(); } else { menu.RootMenu.Items[1].Items[1].Show(); } } return false; }
I hope it helps and please let me know, if I do not meet you requirement and not hesitate to ask. Thank you.
Best Regards,
Andi Santoso
*wrong post*
Hi Andi,
thanks for the response. This now works for me, using the Hide and Show methods as you do in your example. I was setting the visible property before, which wasnt working.
thanks again
Darren
Glad to hear that you have solved the problem. Please, let me know if you have any other questions. Thank you.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname