Hi, I’m trying to refresh a data grid after closing a dialog. I can perhaps set this as a simple action on a button but I have 2 problems with that: 1-When I choose to “select widget” to refresh, I cannot see the data grid on the main view behind the dialog window so I cant select it. I also need this function to “save and close” the dialog window and submit the form with data. This means, the dialog closes successfully and the new data is created but I must refresh the main page to see the new data line item. I was trying to add CSS to the data grid, something like:
function closeDialog (){
context.getWidget(‘DataGrid_0’).refresh();}
But it doesn’t seem to work. Do I have the right approach here? Thanks!
You can see in the pic that the data is entered and then applied using ‘save’. The dialog closes but the data grid behind does not refresh.