PDA

View Full Version : [CLOSED] How to call the plug-in command event



tobros
Aug 07, 2013, 2:20 AM
I have a gridpanel plugin is as follows:

<ext:GridPanel runat="server" ID="gridPanelZZ" Region="Center" AutoScroll="true">


<Plugins>
<ext:RowExpander runat="server" ExpandOnDblClick="true" SingleExpand="true" ExpandOnEnter="true" IsDynamic="true">
<Loader runat="server" DirectMethod="App.direct.GetGrid" Mode="Component">
<LoadMask ShowMask="true" />
<Params>
<ext:Parameter Name="Month" Value="this.record.data.Month" Mode="Raw" />
</Params>
</Loader>
</ext:RowExpander>
</Plugins>

There is also a command as follows:

<ext:CommandColumn runat="server" Width="60">
<Commands>
<ext:GridCommand Icon="SectionExpanded" CommandName="Expand">
</ext:GridCommand>
</Commands>
<Listeners>
<Command Handler="" />
</Listeners>
</ext:CommandColumn>

command column how to trigger plug-in??? how to write command handler???

Baidaly
Aug 07, 2013, 3:06 AM
Hello!



command column how to trigger plug-in??? how to write command handler???

Sorry, can you clarify your requirements? You want to write a command handler for what? Example of Command Handler you can find here: http://examples2.ext.net/#/GridPanel/Commands/Row_Command/

tobros
Aug 07, 2013, 3:55 AM
I want to achieve the effect is as follows:
The first is a gridpanel
6711
When the double-row
6712
Now I would like to expand by clicking on this button
6713
How to achieve my command????

Baidaly
Aug 07, 2013, 4:07 AM
You can use toggleRow method: http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.grid.plugin.RowExpander-method-toggleRow

tobros
Aug 07, 2013, 7:06 AM
Thank you very much!