Author Topic: Refresh row in nested grid  (Read 323 times)

Pisga

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 11
    • View Profile
Refresh row in nested grid
« on: September 20, 2023, 08:36:50 pm »
I have 3 nested grids, all grids are not editable, but has cells with buttons to open popup for updating row data
When the popup closed, row data must be refreshed
I can reload main grid, but all nested grids will be closed after, and I want save them opened and save my current selection on current nested grid
Exists command refreshRow, but what do to, if I want refresh a row on Second or Last level  grid?
How I can find my open nested grid and current row index in it ?
Thank you very much
 

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Refresh row in nested grid
« Reply #1 on: September 20, 2023, 10:02:04 pm »
Reference to detail grid can be obtained from corresponding rowData as

Code: [Select]
var detail_grid = $(rowData.pq_detail.child).pqGrid( 'instance' );

//now call any method on detail grid,

detail_grid.refreshRow()

or

detail_grid.updateRow()

Pisga

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Refresh row in nested grid
« Reply #2 on: September 28, 2023, 03:04:38 pm »
Thank you very much, the solution works OK !