Hello,
I have a ListGrid in a "details" section in a "master detail" interface. The "master" section up top is a ListGrid where the user can select a record. When they select a record, there are 4 tabs down below in the "detail" section where the user can view details about the record they select above. Two of those tabs contain additional ListGrids the user can edit.
If I am editing one of the ListGrids in the details section and I click onto another record in the Master section above, an updateDetails() function fires that updates the details section below with the new "master" record. If I've made any edits in my ListGrid in the details section, I receive an Ok/Save/Cancel prompt regarding the edits.
Clicking Ok is not a problem, the edits are discarded and the ListGrid re-populates with the new data. However, clicking Cancel is a problem. Also, clicking Save is a problem if there are any validation errors on Save. In those two cases, focus returns to the Grid in the details section but the rest of the page has been updated to show the new Master record above and the other tabs in the details section refresh to show this new data as well.
How can I capture this state and correct the issue so that, if I return the user to the grid where I was editing, the rest of the screen returns to the same state as well and shows the details for the original "Master" record?
I have a ListGrid in a "details" section in a "master detail" interface. The "master" section up top is a ListGrid where the user can select a record. When they select a record, there are 4 tabs down below in the "detail" section where the user can view details about the record they select above. Two of those tabs contain additional ListGrids the user can edit.
If I am editing one of the ListGrids in the details section and I click onto another record in the Master section above, an updateDetails() function fires that updates the details section below with the new "master" record. If I've made any edits in my ListGrid in the details section, I receive an Ok/Save/Cancel prompt regarding the edits.
Clicking Ok is not a problem, the edits are discarded and the ListGrid re-populates with the new data. However, clicking Cancel is a problem. Also, clicking Save is a problem if there are any validation errors on Save. In those two cases, focus returns to the Grid in the details section but the rest of the page has been updated to show the new Master record above and the other tabs in the details section refresh to show this new data as well.
How can I capture this state and correct the issue so that, if I return the user to the grid where I was editing, the rest of the screen returns to the same state as well and shows the details for the original "Master" record?
Comment