Update grid in parent window from popup

Hi Knowledge base Team ,

I have a problem with grid , I am using grey box effect , When user click a link in the grid cell it shows a popup with background greying . i want to update the one cell in the grid when a close button clicked in the popup.
please help me to get the grid object from the popup.

Thanks in advance

If you are using dhtmlxWindow as pop up window you can use “onClick” event to detect if window was close and update grid’s value:
dhxWins.window(id).button(“close”).attachEvent(“onClick”, handler);
function handler(){
mygrid.cellById(rowId,cellIndex).setValue(“New value”);
}