I built a Sencha Architect app that displays customer summary Accounts Receivable data in a "Main" grid. I have built the app so when you click on the "Main" grid panel item, then I create a window that has a "detailgrid". Both grids are using the pagingtoolbar on the bottom. The issue that I am experiencing is that if I open the detail grid and use the pagingtollbar to move to a 2nd page of data on the detail grid. When I close the "detail" window grid and select a 2nd customer from the "Main" grid, then the previous pagingtool bar properties are retained from the previous window. I set the "closeaction" on the window is set to destroy. Below is the code that creates the window. Do I need to set the paging grid values when I create the window?
Code:
[COLOR=#7a7a43]onGridpanelItemClick[/COLOR]: [COLOR=#000080][B]function[/B][/COLOR](dataview, record, item, index, e, eOpts) {
Ext.create('ARAPP.view.Detail', {
renderTo: Ext.getBody(),
rec: record,
}).show();
}

Comment