I have developed an application using the MVC architecture. I previously had two views (Grid panel, modal window) that allowed me to do the following:
The requirement was for the modal window to be a separate page all together so I created an entirely new viewport that used the view that was previously displayed in the modal window. I figured out how to populate the form with the grid data but have not figured out how to refresh the grid so the updated record in the store will reflect in the grid view.
- Grid and modal window form shared the same store.
- When a row was double clicked in the grid the "itemdblclick" event is captured and opened the modal window.
- The modal window contained a form, which was populated with the data that was contained in the row the user double clicked on.
- When the user clicked on "submit" the form data was sent to the server via Ext Direct and upon successful form submission I reloaded the grid that spawned the modal window and closed the modal window.
I've read that the grid should reload (refresh) itself whenever the store is updated but that is not the case. I can successfully update the store with the new record(s) but the grid that spawned the new window does not reflect those changes upon successful submission.
Have I overlooked something?
Thanks in advance,