How to differentiate between different GridCommands in GridPanel?
I have a CommandColumn in a GridPanel:
Code:
<ext:CommandColumn>
<Commands>
<ext:GridCommand Icon="Delete" CommandName="Delete" Text="Löschen" />
</Commands>
</ext:CommandColumn>
and I handle the command with:
Code:
<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