Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by swaroop on Jun 17, 2009 00:04
open dhtmlx forum
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

Answer posted by dhxSupport on Jun 17, 2009 01:27
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");
}