Aug 19, 2010, 7:47 PM
Is it possible to add menu items to a sub-menu on-demand?
Hi guys, I was looking for this really sleek functionality, load menu items when you hover your mouse over the sub-menu, I have a GridPanel with a command column, inside this command column I added a SplitCommand which contains a Menu that has several MenuCommands and one of these MenuCommands has inner MenuCommands, these I would like to load from the database when the user moves the mouse over this menu item based on the underlining row id of the GridPanel, is this possible?
Thanks,
Paul
Thanks,
Paul
<ext:CommandColumn Header="Actions" Width="85">
<Commands>
<ext:SplitCommand Icon="MoneyAdd" CommandName="PaymentMenu" Text="Payment" ToolTip-Text="Payment">
<Menu EnableScrolling="false">
<Items>
<ext:MenuCommand Text="Payment History" Icon="Note" CommandName="PaymentHistory" />
<ext:MenuCommand Text="Payment Templates" Icon="ArrowRight">
<Menu EnableScrolling="false">
<Items>
<ext:MenuCommand Text="01-01-2010 - $125,45" Icon="MoneyAdd" CommandName="Item" />
<ext:MenuCommand Text="04-01-2009 - $433,35" Icon="MoneyAdd" CommandName="Item" />
<ext:MenuCommand Text="....." Icon="..." CommandName="..." />
</Items>
</Menu>
</ext:MenuCommand>
</Items>
</Menu>
</ext:SplitCommand>
</Commands>
</ext:CommandColumn>