﻿<?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 - WebMenu</title><link>http://www.intersoftsolutions.com/Community/Tags/WebMenu/</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>Force direction of submenu</title><link>http://www.intersoftsolutions.com/Community/Tags/WebMenu/</link><pubDate>Wed, 04 Aug 2010 04:12:42 GMT</pubDate><dc:creator>pchanez</dc:creator><category>WebMenu</category><description>&lt;p&gt;Is there a way to force the submenu of an item to always open on the right ?&lt;/p&gt;</description></item><item><title>webcombo-Webmenu</title><link>http://www.intersoftsolutions.com/Community/Tags/WebMenu/</link><pubDate>Fri, 25 Sep 2009 09:30:42 GMT</pubDate><dc:creator>Andre</dc:creator><category>WebMenu</category><description>&lt;p&gt;&lt;span style="font-size: 10pt; font-family: 'lucida sans unicode','sans-serif'"&gt;I am trying to use the webcombo with a webmenu integrated. When I try to populate the webmenu inside an ajax update panel using a button click event the information will not display.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;The web menu must have a full page postback for it to update. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; font-family: 'lucida sans unicode','sans-serif'"&gt;What can be done using server side code to update the web menu? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; font-family: 'lucida sans unicode','sans-serif'"&gt;Also, on webmenu click, even in a ajax update panel, the page does a full page postback not a ajax postback. How do I avoid full page postback on menu click for server side code to be called? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;//c# code:**********&lt;/p&gt;
&lt;p&gt; private void BucketMenu(ref WebContextMenu x, bool checkVRDS)&lt;br /&gt;    {&lt;br /&gt;        x.Menu.Items.Clear();&lt;br /&gt;        cmdPackage cmd = new cmdPackage();&lt;/p&gt;
&lt;p&gt;        WebMenuItem mi;&lt;/p&gt;
&lt;p&gt;        DataTable dt = cmd.fillVDIhandoffBucketTable("Userid", "East", cmdPackage.vdiBucketSearch.vdiwf);&lt;/p&gt;
&lt;p&gt;        string isMCO = checkVRDS == true ? " " : "MCO";&lt;/p&gt;
&lt;p&gt;        var query =&lt;br /&gt;         from order in dt.AsEnumerable()&lt;br /&gt;         where order.Field&amp;lt;string&amp;gt;("Center") != isMCO&lt;br /&gt;         orderby order.Field&amp;lt;string&amp;gt;("Center")&lt;br /&gt;         group order by order.Field&amp;lt;string&amp;gt;("Center") into g&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;         //var query =&lt;br /&gt;         // from order in dt.AsEnumerable()        &lt;br /&gt;         // orderby order.Field&amp;lt;string&amp;gt;("Center")&lt;br /&gt;         // group order by order.Field&amp;lt;string&amp;gt;("Center") into g&lt;/p&gt;
&lt;p&gt;         select new&lt;br /&gt;         {&lt;br /&gt;             name = g.Key,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;         };&lt;/p&gt;
&lt;p&gt;        foreach (var order in query)&lt;br /&gt;        {&lt;br /&gt;            mi = new WebMenuItem(order.name, order.name);&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;            WebMenuItemCollection usaItems = mi.Items;// WebContextMenu1.Items.GetNamedItem(order.name).Items;&lt;br /&gt;            x.Menu.Items.Add(mi);&lt;/p&gt;
&lt;p&gt;            //WebMenuItemCollection usaItems;&lt;br /&gt;            DataRow[] usaRows = dt.Select("Center =  '" &amp;#43; order.name &amp;#43; "'");&lt;/p&gt;
&lt;p&gt;            foreach (DataRow row in usaRows)&lt;br /&gt;            {&lt;/p&gt;
&lt;p&gt;                WebMenuItem item = new WebMenuItem(row["Bucket_Name"].ToString());&lt;br /&gt;                item.Tag = row["BucketID"].ToString();&lt;br /&gt;                //item.ImageURL = "images/" &amp;#43; item.Text &amp;#43; ".jpg";&lt;/p&gt;
&lt;p&gt;                usaItems.Add(item);&lt;/p&gt;
&lt;p&gt;            }&lt;br /&gt;        }&lt;br /&gt;    }&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;    protected void Button1_Click(object sender, EventArgs e)&lt;br /&gt;    {&lt;br /&gt;        BucketMenu(ref WebContextMenu1, false);&lt;br /&gt;   &lt;br /&gt;    }&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;//Asp.net&lt;/p&gt;
&lt;p&gt;&amp;lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"&amp;gt;&lt;br /&gt;        &amp;lt;asp:ScriptManager ID="ScriptManager1" runat="server"&amp;gt;&lt;br /&gt;        &amp;lt;/asp:ScriptManager&amp;gt;&lt;br /&gt;       &lt;br /&gt;        &lt;br /&gt;       &lt;br /&gt;        &amp;lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&amp;gt;&lt;br /&gt;            &amp;lt;contenttemplate&amp;gt;&amp;lt;asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /&amp;gt;&lt;br /&gt;           &amp;lt;iswebcombo:webcombo ID="WebCombo2" runat="server" &lt;br /&gt;                UseDefaultStyle="true"&amp;gt;&lt;br /&gt;                &amp;lt;IntegrationSettings ControlId="WebContextMenu1" Enabled="True" /&amp;gt;&lt;br /&gt;            &amp;lt;/ISWebCombo:WebCombo&amp;gt;&lt;br /&gt;           &lt;br /&gt;       &lt;br /&gt;            &lt;br /&gt;            &lt;br /&gt;            &amp;lt;ISWebDesktop:WebContextMenu ID="WebContextMenu1" runat="server" AutoPostBack="Yes"&amp;gt;&lt;br /&gt;                &lt;br /&gt;                &amp;lt;MenuStyleSettings BackgroundStripColor2="SteelBlue"&amp;gt;&lt;br /&gt;                &amp;lt;/MenuStyleSettings&amp;gt;&lt;br /&gt;                &lt;br /&gt;            &amp;lt;/ISWebDesktop:WebContextMenu&amp;gt;&lt;br /&gt;     &amp;lt;/contenttemplate&amp;gt;&lt;br /&gt;        &amp;lt;/asp:UpdatePanel&amp;gt;&lt;br /&gt;        &lt;br /&gt;        &lt;br /&gt;        &lt;br /&gt;&amp;lt;/asp:Content&amp;gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>WebMenu in MasterPage</title><link>http://www.intersoftsolutions.com/Community/Tags/WebMenu/</link><pubDate>Mon, 17 Aug 2009 11:17:14 GMT</pubDate><dc:creator>gkfahnbulleh@lakepiso.com</dc:creator><category>WebMenu</category><description>&lt;p&gt;I'm using a WebMenu in a master page.  The page displays well in the browser; however, when I open up a content page I see the following:&lt;br /&gt;&lt;br /&gt;&lt;img style="border-bottom: medium none; border-left: medium none; border-top: medium none; border-right: medium none" src="http://www.lakepiso.com/webmenu.png" /&gt; &lt;br /&gt;&lt;img style="border-bottom: medium none; border-left: medium none; width: 0px; height: 0px; border-top: medium none; border-right: medium none" alt="" src="http://www.intersoftpt.com/Community/WebDesktop/NewQuestion/www.lakepiso.com/webmenu.png" /&gt; &lt;img style="border-bottom: medium none; border-left: medium none; width: 0px; height: 0px; border-top: medium none; border-right: medium none" alt="" src="http://www.lakepiso.com/webmenu.png" /&gt; &lt;img style="border-bottom: medium none; border-left: medium none; width: 0px; height: 0px; border-top: medium none; border-right: medium none" alt="WebMenu Error" src="http://www.lakepiso.com/webmenu.png" /&gt; &lt;/p&gt;</description></item></channel></rss>