I am sorry, I cannot show you my code because my code is not written in javascript, I have written a Yii Framework extension for JqWidgets and therefore my code is PHP, meaning I pass the params, functions, etc in PHP. I also use full AJAX and therefore I cannot do “right click view page source” and show you the generated source code.
Have you take a look at this example ? Pop Up Dialog
If you see the source code on line 115, there is a line :
$("#Save").click(function () {
...
Now if you want to refresh the grid when the user press the save button, then you could just add :
$("#Save").click(function () {
...
$("#jqxGrid").jqxGrid("updatebounddata");
...
Or if you want to refresh the grid on window close then you could just add :
$('#jqxWindow').on('close', function (event) {
$("#jqxGrid").jqxGrid("updatebounddata");
});
Hope that helps