﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebTreeView - WebTreeView WebContextMenu sub menu items visible property</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/WebTreeView-WebContextMenu-sub-menu-items-visible-property/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebTreeView WebContextMenu sub menu items visible property</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/WebTreeView-WebContextMenu-sub-menu-items-visible-property/</link><pubDate>Wed, 13 Jan 2010 20:36:46 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><category>WebTreeView</category><category>WebContextMenu</category><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Darren,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Glad to hear that you have solved the problem. Please, let me know if you have any other questions. Thank you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebTreeView WebContextMenu sub menu items visible property</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/WebTreeView-WebContextMenu-sub-menu-items-visible-property/</link><pubDate>Wed, 13 Jan 2010 07:46:41 GMT</pubDate><dc:creator>theDiv</dc:creator><category>WebTreeView</category><category>WebContextMenu</category><description>&lt;p&gt;Hi Andi,&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;thanks again&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Darren&lt;/p&gt;</description></item><item><title>WebTreeView WebContextMenu sub menu items visible property</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/WebTreeView-WebContextMenu-sub-menu-items-visible-property/</link><pubDate>Tue, 12 Jan 2010 23:47:01 GMT</pubDate><dc:creator>julia</dc:creator><category>WebTreeView</category><category>WebContextMenu</category><description>&lt;p&gt;*wrong post*&lt;/p&gt;</description></item><item><title>WebTreeView WebContextMenu sub menu items visible property</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/WebTreeView-WebContextMenu-sub-menu-items-visible-property/</link><pubDate>Tue, 12 Jan 2010 23:31:52 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><category>WebTreeView</category><category>WebContextMenu</category><description>&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Hi Darren,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I manage to do your scenario on the WebTreeView and WebContextMenu, where on the first child node, I&amp;nbsp;disable the first menu and on the second child node, I do hide the second submenu. However,&amp;nbsp;I do not see any behaviour like you mentioned up there. As well as&amp;nbsp;I&amp;nbsp;tried it subsequently, the result is still&amp;nbsp;same, it works properly. Here&amp;nbsp;is the snippet:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;    function WebTreeView1_OnNodeContextMenu(controlId, node) {
        
            var WebTreeView1 = ISGetObject(controlId);

            var menu = ISGetObject("WebContextMenu1");           

            menu.Show(this.screenLeft &amp;#43; event.clientX, this.screenTop &amp;#43; 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;

        }&lt;/pre&gt;
&lt;p&gt;      &lt;span style="font-size: 9pt"&gt;I hope it helps and please let me&amp;nbsp;know, if I do not meet you requirement and&amp;nbsp;not hesitate to ask. Thank you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt"&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt; &lt;/p&gt;</description></item><item><title>WebTreeView WebContextMenu sub menu items visible property</title><link>http://www.intersoftsolutions.com/Community/WebTreeView/WebTreeView-WebContextMenu-sub-menu-items-visible-property/</link><pubDate>Tue, 12 Jan 2010 15:33:21 GMT</pubDate><dc:creator>theDiv</dc:creator><category>WebTreeView</category><category>WebContextMenu</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I wonder if anyone else has seen this behaviour?  &lt;/p&gt;
&lt;p&gt;I have a WebTreeView, which has a webcontextmenu.  One of the menu items on the context menu has sub menu items.&lt;/p&gt;
&lt;p&gt;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' &lt;strong&gt;visible&lt;/strong&gt; 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.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;</description></item></channel></rss>