[CLOSED] Passing a GridPanel in a RowExpander to a JavaScript method.

  1. #1

    [CLOSED] Passing a GridPanel in a RowExpander to a JavaScript method.

    I have a GridPanel (GridPanelA) which has several rows. Each row has a RowExpander associated with it which when expanded contains another GridPanel (GridPanelB). When a row is selected in GridPanelB and a button is clicked I need to pass GridPanelB to a JavaScript method.

    I have tried testMethod(#{GridPanelB}) this produces the GridPanel is undefined error. I am able to pass GridPanelA i.e. testMethod(#{GridPanelA}).
    Last edited by Daniil; Jun 08, 2015 at 10:31 AM. Reason: [CLOSED]
  2. #2
    Hi @Sobhia,

    An individual GridPanel is rendered for each row. So, in your scenario a GridPanel's ID is just ignored to avoid IDs conflict.

    You should get a GridPanel reference in other way.

    For example, if a Button is inside a GridPanel's Toolbar, then you can get a reference by:
    button.up("gridpanel");
    If you listen to a selection model's Select event you can get a GridPanel reference from a selection model reference which is passed to an event handler:
    selectionModel.view.panel

Similar Threads

  1. Replies: 1
    Last Post: Sep 30, 2014, 1:23 PM
  2. Replies: 1
    Last Post: Sep 09, 2013, 7:04 AM
  3. [CLOSED] GridPanel insertRecord javascript method function not found
    By Daly_AF in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 05, 2012, 3:25 PM
  4. Passing parameter to Ajax Method
    By shijith in forum 1.x Help
    Replies: 1
    Last Post: Jul 26, 2010, 12:52 PM
  5. [CLOSED] Passing values between tabs autoiframe method
    By speedstepmem2 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 20, 2008, 1:11 AM

Tags for this Thread

Posting Permissions