Is it possible to send the grid information in Cell ‘a’ when the form button is click in Cell ‘b’.
mainMenu.attachEvent("onClick", function (id) {
alert(id);
if(id == "addToolName") {
var windows = new dhtmlXWindows();
var winTool = windows.createWindow('winTool', 0, 0, 300, 500);
var layoutTool = winTool.attachLayout('2E');
var addTool = layoutTool.cells('a');
addTool.setText('Add New Tool');
addTool.setHeight('100');
addTool.fixSize(1,1);
var str = [
{ type:"input" , name:"inpTool", label:"Tool Name:", inputWidth:200 },
{ type:"button" , name:"butAdd", value:"Add Tool" }
];
var frmTool = addTool.attachForm(str);
var listTools = layoutTool.cells('b');
listTools.setText('Existing Tools');
var gridTool = listTools.attachGrid();
gridTool.setIconsPath('./codebase/imgs/');
gridTool.setHeader(["Tool"]);
gridTool.setColTypes("ro");
gridTool.setColSorting('str');
gridTool.load("php/Tooling/toollist.php");
gridTool.init();
winTool.setText('Tooling');
winTool.denyMove();
winTool.setModal(1);
winTool.centerOnScreen();
}
});
I just need to update when the checkbox is true on the grid. Any help would be appriciated.