Apr 01, 2015, 7:14 PM
[CLOSED] Updated two grid post to handler question
I am in the process of updating some old code and ran in to a problem with the two grid post to handler (reference http://forums.ext.net/showthread.php...Handler-pop-up).
<Listeners>
<Save Handler="Ext.Msg.alert('Submit','Submit successful'); window.location = 'Main.aspx';"/>
<CommitDone Handler="this.refresh();"/>
<SaveException Handler="Ext.Msg.alert('Submit','Submit failure: ' + e.message);" />
</Listeners>
I changed the listener save event from the store to the Toolbar button click handler event (the previous model seems to have changed). I now get the pop-up "Operation was successful" with the "Ok" button. I need to refresh the page when the "Ok" button is clicked and the Button Click Handler event doesn't accept the window.location argument.
Last edited by Daniil; Apr 01, 2015 at 8:11 PM.
Reason: [CLOSED]