Jan 06, 2011, 10:40 PM
How to differentiate between different GridCommands in GridPanel?
I have a CommandColumn in a GridPanel:
But this command will be executed on every GridCommand, because there is no selection of the CommandName, and I don't know how to do that. I want to have a second, different GridCommand.
Please help me with this newbie question.
Thanx.
Jan
<ext:CommandColumn>
<Commands>
<ext:GridCommand Icon="Delete" CommandName="Delete" Text="Löschen" />
</Commands>
</ext:CommandColumn>
and I handle the command with: <Listeners>
<Command Handler="#{GridPanel_RetailPrices}.getStore().remove(record);" />
</Listeners>
no problem so far (I only have one GridCommand).But this command will be executed on every GridCommand, because there is no selection of the CommandName, and I don't know how to do that. I want to have a second, different GridCommand.
Please help me with this newbie question.
Thanx.
Jan
Last edited by joshihybrid; Jan 06, 2011 at 11:34 PM.