How to differentiate between different GridCommands in GridPanel?

  1. #1

    How to differentiate between different GridCommands in GridPanel?

    I have a CommandColumn in a GridPanel:

                                            <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 07, 2011 at 12:34 AM.

Similar Threads

  1. Replies: 3
    Last Post: Dec 09, 2010, 6:40 AM

Tags for this Thread

Posting Permissions