Open woodsdarren opened 10 years ago
Hi Darren, rather than reload the table - which is probably what your filter button does. When you submit your detail changes to the server get it to return the updated summary record. Then use updatedRecord with clientOnly and jtable will change the one record, with animation. Similarly to delete the summary record use deleteRecord. Hope this answers the correct question. Malcolm
Malcolm, I have tried your suggestion below and cannot seem to get it to work. I think the issue may be that I am using display:{} on all my table fields to show multiple data fields. I am not sure if I should be updating the entire “display” portion or just the individual fields when using an ‘updateRecord’ Any help would be appreciated!
Thanks,
Darren Woodbrey Technical Director Tidestone Solutions Direct: 207.956.6637
From: misterparsons [mailto:notifications@github.com] Sent: Wednesday, May 21, 2014 3:02 AM To: hikalkan/jtable Cc: Darren Woodbrey Subject: Re: [jtable] Native Dialogue Behavior with custom Dialogue (#1298)
Hi Darren, rather than reload the table - which is probably what your filter button does. When you submit your detail changes to the server get it to return the updated summary record. Then use updatedRecord with clientOnly and jtable will change the one record, with animation. Similarly to delete the summary record use deleteRecord. Hope this answers the correct question. Malcolm
— Reply to this email directly or view it on GitHubhttps://github.com/hikalkan/jtable/issues/1298#issuecomment-43719023.
For valid reasons, I was not able to use the native dialogue popups to edit the records in the master / child jTable. (I am not editing the table that the jTable is displaying data from because of a Detail / Summary table structure). So I have managed to use jQuery dialogue modal to popup my own edit pages if the user clicks on a cell. These pages edit the detail records, then roll the changes to the summary tables. I then need to refresh the jTable to reflect the changes to the summary table. I was able to do this by "clicking" the filter button. Thus reloads the page and closes all expanded sub grids. I notice that the native dialogues update the jTable, but do not close the sub grids. How can I accomplish this? I would also like to implement the line highlight when removing a line if possible.
Thanks, Darren