Jun 15, 2017, 9:24 AM
Setting GridCommand name upon rendering according to store data
Hi,
I am using GridCommand on my grid to create command button named Activate:
What i need to achieve is the ability to change the command text according to the match row data in the Store
of this grid (so sometimes it will be named Activate and sometimes Deactivate)
Also i need to be able to identify which state the command is in order to handle it diffrently when pressed.
I am using GridCommand on my grid to create command button named Activate:
<ext:CommandColumn ID="CommandColumn" Text="Action" runat="server" Width="160">
<Commands>
<ext:GridCommand CommandName="Activate" Text="Activate"/>
</Commands>
<Listeners>
<Command Handler="HandleCommand(command, record);" />
</Listeners>
</ext:CommandColumn>
What i need to achieve is the ability to change the command text according to the match row data in the Store
of this grid (so sometimes it will be named Activate and sometimes Deactivate)
Also i need to be able to identify which state the command is in order to handle it diffrently when pressed.