Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by pyt on Sep 29, 2008 07:12
open dhtmlx forum
attach window to grid

Hi,

i'm trying to use contextmenu in grid and for a menu item (for example "add notes"), i need to create a new window.
How can i attach window to grid? And can i configure dhtmlxWindow in xml?

Thanks in advance!
Answer posted by Support on Sep 30, 2008 08:53
You can't configure such logic in XML, but you can add necessary logic through js code.

menu.setContextMenuHandler(function(id){
     if (id == "add_notes"){
              //logic to open new window here
              var win = dhxwins.createWindow (....
     }
});