Author Topic: Nested grid with track and shared source?  (Read 12971 times)

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Nested grid with track and shared source?
« Reply #15 on: May 16, 2014, 05:51:47 pm »
Second line is not required, it doesn't seem to do anything as Name == rowDataMain.Name ( rowDataMain is a reference to row data)

$('#templateDataGrid').pqGrid("updateRow", { rowIndx: parseInt(masterIndexNr), row: { 'Name': rowDataMain.Name } });

Anyway I understand updateRow would make it easier, still when you click on the apply button you can loop through all the detail grids, check isDirty() on each one of them, collect their corresponding rowDataMain into an array and post it to the server.

I hope it helps.
« Last Edit: May 16, 2014, 06:04:12 pm by paramquery »

jowliwon

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Nested grid with track and shared source?
« Reply #16 on: May 16, 2014, 09:49:30 pm »
Yes. Makes sens. Thank you.