PDA

View Full Version : [CLOSED] Dynamic ButtonGroup



softmachine2011
Jun 06, 2012, 1:38 PM
Hi,

In our MVC application we need to build a Toolbar with some common ButtonGroups and some other which may be added dynamically according to a selection process.

In a single step, it may be added none, one or several ButtonGroups to the Toolbar. These set of ButtonGroups could be defined in an UserControls, PartialView or any other way.

What would be the best way to perfrom this?

Thanks in advance.

Daniil
Jun 06, 2012, 3:34 PM
Hi,

I would use Loader. Please see how to load components using Loader.
http://examples2.ext.net/#/Loaders/Component/Http_Handler/

softmachine2011
Jun 07, 2012, 9:04 AM
Thanks, it work for us!

We must add Loader control inside the Toolbar and also a hidden Button into Toolbar's items :


<ext:Button runat="server" Text="Add ButtonGroup" Icon="PluginGo" Hidden="true">
<Listeners>
<Click Handler="this.up('toolbar').load();this.disable();" />
</Listeners>
</ext:Button>


Regards.