Jul 14, 2009, 6:52 PM
How can I get MenuItems selected as path?
Hi,
I have a TabPanel like this:
MenuItem are like this:
Something like this: View>> Toolbars >> Menu Bar, when I click over Menu Bar option.
Thanks
Pablo
I have a TabPanel like this:
<ext:TabPanel ID="TabPanelMainMenu" runat="server" EnableTabScroll="true">
<Listeners>
<TabChange Handler="Coolite.AjaxMethods.changeTab();" />
</Listeners>
<BottomBar>
<ext:Toolbar ID="toolbarSelectedPath" runat="server" Height="20px" Flat="true" >
<Items>
<ext:ToolbarFill ID="ToolbarFill1" runat="server" />
<ext:Label runat="server" ID="lbl_path" Text=""></ext:Label>
</Items>
</ext:Toolbar>
</BottomBar>
</ext:TabPanel>
I add dinamically tabs to TabPanel at CodeBehind, each tab has a Toolbar with: a ToolbarButton that have a Menu and with a ToolbarFill.MenuItem are like this:
private Coolite.Ext.Web.MenuItem createNewMenuItem(MenuItemData itemMenuEGov, string url, string apppath)
{
Coolite.Ext.Web.MenuItem itemMenu = new Coolite.Ext.Web.MenuItem();
itemMenu.Text = itemMenuEGov.FunctionDescription;
itemMenu.ID = itemMenuEGov.MenuId.ToString();
// Si tiene URL para llamar
if (itemMenuEGov.HasUri)
{
// Agrego el evento de Click de Ajax
itemMenu.Listeners.Click.Handler = string.Format("Coolite.AjaxMethods.showPageOnClick('{0}', '{1}', '{2}', '{3}')", itemMenuEGov.Uri, itemMenuEGov.MenuId.ToString(), itemMenuEGov.HelpPage, itemMenu.Text);
}
return itemMenu;
}
Then I want to get in the Coolite.AjaxMethods.showPageOnClick a string, containing itemMenu.Text of each parent of the clicked itemMenu.Text.Something like this: View>> Toolbars >> Menu Bar, when I click over Menu Bar option.
Thanks
Pablo