Hi,
I'm trying to make the following scenario, i searched for it, tried to extend the Grid but sadly i cant figure it out.
I'm adding a new row to the Grid, mode is popup. its just a simple html template , and of course the Update/Cancel button are appended by the Grid. ( for now its working perfectly)
I Added a third button which is "Save & New" and renamed the Update to "Save & Close".
The "Save & Close" Button is working as expected, the row is inserted and the popup is closed, (the default behaviour)
What I'm trying to achieve with the "Save & New", is simply, not to let the popup close after the insertion of the row, and of course clear the fields, so the user can re-fill them. ( straight forward business logic ).
is there a way that i can achieve this logic? I guess we can because when i press the Add button in the toolbar, the fields are emptied ( the model is emptied )
what are the events that I need to look at? is there a special one that I should extend?
Thanks