littlegg
21 Jun 2007, 5:34 PM
can messagebox work in synchronous mode?
I am using a PageToolbar for EditorGrid. some users edited the cells and press next page button, their modification will be lost. so i add a Ext.MessageBox.show function to Data.Store's beforeLoad event, user can choose to save changes or not , or cancel action. but i think the messagebox is working in asynchronous mode, before user click any button, the grid has changed to next page. if i use window.confirm function, grid will hang waiting for user choice. but i need Yes, no ,cancel buttons, window.confirm only have yes and cancel buttons. how should i do?
I am using a PageToolbar for EditorGrid. some users edited the cells and press next page button, their modification will be lost. so i add a Ext.MessageBox.show function to Data.Store's beforeLoad event, user can choose to save changes or not , or cancel action. but i think the messagebox is working in asynchronous mode, before user click any button, the grid has changed to next page. if i use window.confirm function, grid will hang waiting for user choice. but i need Yes, no ,cancel buttons, window.confirm only have yes and cancel buttons. how should i do?