cenetadmin
asked on
ComponentArt Menu Control
I currently am using the old version of Infragistic's menu control CYBERAKT.WebControls.Navig ation...Wa nt to upgrade to their new control but need to figure out how to convert some of current code using the new properties. i have the following routine that I used to load up the old menu but the new version doesn't have a MenuGroup property. How would I re-write this using the new control? ComponentArt.Web.UI.Menu?
private void AddLeftNavBottom(MenuGroup newGroup, string linkText, string linkPath, string menuID)
{
MenuItem newItem;
newItem = newGroup.Items.Add();
newItem.Width = "120";
newItem.Label = linkText;
newItem.URL = linkPath;
newItem.LeftIconWidth = 20;
if (this.Page.menuID == menuID)
newItem.LeftIcon = this.Page.BaseSURL("images /Site/menu _check.gif ");
else
newItem.LeftIcon = this.Page.BaseSURL("images /Site/menu _empty.gif ");
return;
}
private void AddLeftNavBottom(MenuGroup
{
MenuItem newItem;
newItem = newGroup.Items.Add();
newItem.Width = "120";
newItem.Label = linkText;
newItem.URL = linkPath;
newItem.LeftIconWidth = 20;
if (this.Page.menuID == menuID)
newItem.LeftIcon = this.Page.BaseSURL("images
else
newItem.LeftIcon = this.Page.BaseSURL("images
return;
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.