Alpha Video Training
Results 1 to 3 of 3

Thread: What is the Client Side Event on a grid that fire when the grid close

  1. #1
    Member
    Real Name
    Yigal Ayalon
    Join Date
    Aug 2012
    Location
    Israel
    Posts
    51

    Default What is the Client Side Event on a grid that fire when the grid close

    I have a grid with detail view that is called from a parent grid and I'm looking what is the correct place to put the following JavaScript in order to refresh the parent grid:

    //Get a pointer to the parent component object that opened this Grid and execute a .refresh() method on the parent.
    var po = {grid.object}.getParentObject();
    //If this Grid does not have a parent then 'po' will be false.
    if(po) po.refresh()

    I placed it on the AfterDetailViewClose but that cause the parent to be refresh each time I add a new line to the child grid and I want to avoid that extra refresh and do it just once when I finish to add all lines in the child grid.

  2. #2
    Member
    Real Name
    Jenny Gong
    Join Date
    Jul 2013
    Posts
    282

    Default Re: What is the Client Side Event on a grid that fire when the grid close

    I also have the same problem, also wanna know what is the correct event after grid close or on grid close

  3. #3
    Member
    Real Name
    Kevin Starkey
    Join Date
    Oct 2013
    Posts
    52

    Default Re: What is the Client Side Event on a grid that fire when the grid close

    I've used this on the afterGridSubmit and afterRowSubmit to update the parent row selected for the detail grid: -

    var parentGrid = {grid.Object}.getParentObject();
    rowNum = parentGrid._selectedRow;
    //alert('Will now refresh row number ' + rowNum + ' in the Parent Grid');
    parentGrid.refreshRow(rowNum);

Similar Threads

  1. Ajax Callback From Grid Component Client-Side Event? Partially Working...
    By gkpurcey in forum Application Server Version 11 - Web/Browser Applications
    Replies: 2
    Last Post: 08-09-2012, 05:23 PM
  2. Event does not fire when grid placed in a5w page
    By darumax in forum Application Server Version 10 - Web/Browser Applications
    Replies: 3
    Last Post: 08-08-2012, 11:04 PM
  3. How To Reference Session Variable In Grid Client Side Event
    By Bob49 in forum Application Server Version 11 - Web/Browser Applications
    Replies: 2
    Last Post: 05-15-2012, 06:57 PM
  4. How to fire field's lookup grid or open popup grid on new record event?
    By eritovs in forum Application Server Version 10 - Web/Browser Applications
    Replies: 0
    Last Post: 11-03-2010, 12:35 PM
  5. Ajax Callback from Client Side Grid System Event
    By kingcarol in forum Application Server Version 10 - Web/Browser Applications
    Replies: 12
    Last Post: 08-27-2010, 09:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •