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
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. The web menu must have a full page postback for it to update.
What can be done using server side code to update the web menu?
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?
//c# code:**********
private void BucketMenu(ref WebContextMenu x, bool checkVRDS) { x.Menu.Items.Clear(); cmdPackage cmd = new cmdPackage();
WebMenuItem mi;
DataTable dt = cmd.fillVDIhandoffBucketTable("Userid", "East", cmdPackage.vdiBucketSearch.vdiwf);
string isMCO = checkVRDS == true ? " " : "MCO";
var query = from order in dt.AsEnumerable() where order.Field<string>("Center") != isMCO orderby order.Field<string>("Center") group order by order.Field<string>("Center") into g
//var query = // from order in dt.AsEnumerable() // orderby order.Field<string>("Center") // group order by order.Field<string>("Center") into g
select new { name = g.Key,
};
foreach (var order in query) { mi = new WebMenuItem(order.name, order.name);
WebMenuItemCollection usaItems = mi.Items;// WebContextMenu1.Items.GetNamedItem(order.name).Items; x.Menu.Items.Add(mi);
//WebMenuItemCollection usaItems; DataRow[] usaRows = dt.Select("Center = '" + order.name + "'");
foreach (DataRow row in usaRows) {
WebMenuItem item = new WebMenuItem(row["Bucket_Name"].ToString()); item.Tag = row["BucketID"].ToString(); //item.ImageURL = "images/" + item.Text + ".jpg";
usaItems.Add(item);
} } }
protected void Button1_Click(object sender, EventArgs e) { BucketMenu(ref WebContextMenu1, false); }
//Asp.net
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <contenttemplate><asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /> <iswebcombo:webcombo ID="WebCombo2" runat="server" UseDefaultStyle="true"> <IntegrationSettings ControlId="WebContextMenu1" Enabled="True" /> </ISWebCombo:WebCombo> <ISWebDesktop:WebContextMenu ID="WebContextMenu1" runat="server" AutoPostBack="Yes"> <MenuStyleSettings BackgroundStripColor2="SteelBlue"> </MenuStyleSettings> </ISWebDesktop:WebContextMenu> </contenttemplate> </asp:UpdatePanel> </asp:Content>
The development team has managed to fix the issue.
The hotfix will be available at the end of this month, at most. Please try to apply the latest hotfix and let us know whether it helps or not.
I was unable to run your snippet code in my end. There are some classes that don’t exist in my end.
I created a simple sample of WebCombo integration with WebContextMenu scenario based on your code. The menu item is generated by button click event inside AJAX update panel. My sample works and I was unable to replicate your issue.
Please make any necessary changes to the attached sample, so it reproduces the issue. And then have the modified sample send back to us for further investigation. (You may use Northwind database if needed to.)
Hi Yudi,
After looking at your example and changing x.Menu.Items.Add(mi); to x.Items.Add(mi); seems to make my code work outside of a master page.
Keeping your example the same but adding it into a masterpage stops your example from working. Any ideas on why a masterpage stops the code from working?
thanks.
Thank you for the sent modified sample.
I have forwarded this to WebDesktop development team for further investigation. I’ll let you know any news/updates I heard from the team regarding this issue.
This is why I love intersoft. Thank you so very much. It works great now.
Thank you for your compliment; it is our duty to provide our customers with the best business solutions.
Please let us know with any questions or concerns you may have, we will be more than glad to assist 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