PDA

View Full Version : StartMenu V2



Kaveh
Apr 12, 2012, 12:30 PM
Hi All,

I want to add nested menu to V2 of StartMenu (desktop example),
is there any documentation that explain valid tags inside <StartMenu>?

Thanks

Daniil
Apr 13, 2012, 4:29 PM
Hi,

Example

<StartMenu Title="Ext.Net Desktop" Icon="Application" Height="300">
<MenuItems>
<ext:MenuItem runat="server" Text="Child menu">
<Menu>
<ext:Menu runat="server">
<Items>
<ext:MenuItem runat="server" Text="Child Item 1" />
<ext:MenuItem runat="server" Text="Child Item 2" />
</Items>
</ext:Menu>
</Menu>
</ext:MenuItem>
</MenuItems>
</StartMenu>

Kaveh
Apr 13, 2012, 4:40 PM
Thanks a lot.

nukarsoft
Jun 28, 2012, 1:36 AM
how i can translate this to code and run it from the aspx.cs? tksss


Hi,

Example

<StartMenu Title="Ext.Net Desktop" Icon="Application" Height="300">
<MenuItems>
<ext:MenuItem runat="server" Text="Child menu">
<Menu>
<ext:Menu runat="server">
<Items>
<ext:MenuItem runat="server" Text="Child Item 1" />
<ext:MenuItem runat="server" Text="Child Item 2" />
</Items>
</ext:Menu>
</Menu>
</ext:MenuItem>
</MenuItems>
</StartMenu>

Daniil
Jul 03, 2012, 9:11 AM
Like this:

Example

protected void Page_Load(object sender, EventArgs e)
{
this.Desktop1.StartMenu = new DesktopStartMenu();
this.Desktop1.StartMenu.Title = "Ext.NET Desktop";
this.Desktop1.StartMenu.Icon = Icon.Application;
this.Desktop1.StartMenu.MenuItems.Add(new Ext.Net.MenuItem("Item"));
}