Pass the values from listeners to directmethod

  1. #1

    Pass the values from listeners to directmethod

    i have a grid panel and inside it,i am using rowcommand with edit icon, what i wanna do is that pass the value, which got from inside of Listeners 's Comman Handler(record.data.company) , to the directmethod (codebehind).
    how can I achieve that.
    thank you.


       <ext:CommandColumn runat="server" Width="60">
                            <Commands>
                                <ext:GridCommand Icon="Delete" CommandName="Delete">
                                    <ToolTip Text="Delete" />
                                </ext:GridCommand>
                                <ext:CommandSeparator />
                                <ext:GridCommand Icon="NoteEdit" CommandName="Edit">
                                    <ToolTip Text="Edit" />
                                </ext:GridCommand>
                            </Commands>
                            <Listeners>
                                <Command Handler="Ext.Msg.alert(command, record.data.company);" />
                            </Listeners>
                        </ext:CommandColumn>
                    </Columns>
                </ColumnModel>
                <SelectionModel>
                    <ext:RowSelectionModel runat="server" Mode="Single" />
                </SelectionModel>            
            </ext:GridPanel>
  2. #2
    Take a look on the following example: http://forums.ext.net/showthread.php...ll=1#post98865
  3. #3
    thank you RCN .
    it works fine for me .
  4. #4
    You're welcome

Similar Threads

  1. [CLOSED] How to pass extraparams tp directmethod?
    By feanor91 in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 19, 2012, 5:00 PM
  2. Replies: 1
    Last Post: Jun 08, 2011, 3:11 AM
  3. [CLOSED] Pass records of a store to a DirectMethod
    By macap in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 14, 2010, 3:00 PM
  4. Pass values between windows
    By ven in forum 1.x Help
    Replies: 8
    Last Post: Oct 07, 2009, 6:11 AM
  5. how to pass values between tabs
    By joydeepsen in forum 1.x Help
    Replies: 0
    Last Post: Jun 09, 2009, 1:44 AM

Posting Permissions