Hi,
i’m trying to implement a dhtmlxForm in a dhtmlxWindows control that is invoked when a user clicks on a register in a dhtmlxGrid.
At this moment it’s running correctly, except that i need to show a hugh amount of information in the form (about 56 fields), and i am not able to show it correctly in more than one column.
Is there a way to implement a multi-column or another view for the fields attached to the form different to a vertical list of inputs-textfields?
This is the code I use:
mygrid.attachEvent(“onRowSelect”,function(Id){
var data = [
{type:“settings”, position: “label-left”, labelWidth: 80, inputWidth: 120},
{type:“input”,id:“ALIAS”,name:“ALIAS”,label:“ALIAS”,value: mygrid.cells(Id,0).getValue()},{type:“input”,id:“DRAWING_NO”,name:“DRAWING_NO”,label:“DRAWING_NO”,value: mygrid.cells(Id,1).getValue()},
{type:“input”,id:“KEYWORD”,name:“KEYWORD”,label:“KEYWORD”,value: mygrid.cells(Id,2).getValue()},
…
…
];
var id = “Window”; //+winCount;
var dhxWins= new dhtmlXWindows();
dhxWins.setSkin(“dhx_skyblue”);
win = dhxWins.createWindow(id, 20, 20, 640, 700);
win.setModal(true);
win.setText("Work Order: “+mygrid.cells(Id,32).getValue()+” " +id);
win.denyResize();
win.centerOnScreen();
dhxForm = win.attachForm(data);
I tried the “inputWidth auto” but it doesn’t work.
Regards,
Eduardo.