Grid object constructor and dataprocessor

I used to have a grid layed out with the rather messy looking:

dhxGrid = dhxLayout.cells(“a”).attachGrid();
dhxGrid.setImagePath("…/common/imgs/");
dhxGrid.setHeader(“CodiceDb,Ragione Sociale,Indirizzo,Cap,Agenzia,Agente,Stato Trattativa”);
dhxGrid.setColumnIds(“codiceDb,RagSoc,Indirizzo,Cap,Agenzia_Albacom,Agente,Stato_Trattativa”);
dhxGrid.attachHeader("#connector_select_filter,#connector_text_filter,#connector_text_filter,#connector_text_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter")
dhxGrid.setInitWidths(“80,200,250,80,100,100,100,150”)
dhxGrid.setColTypes(“edtxt,ed,ed,ed,ed,ed,ed,ed”);
dhxGrid.setColSorting(“connector,connector,connector,connector,connector,connector,connector,connector”)
dhxGrid.enableSmartRendering(true)
dhxGrid.enableMultiselect(true)
dhxGrid.init();
dhxGrid.loadXML(“aziende_connector.php”);
var dp = new dataProcessor(“aziende_connector.php”);
dp.init(dhxGrid);

I tried to change it to use the “object constructor” system like so:

dhxGrid = new dhtmlXGridObject({
parent:dhxLayout.cells(“a”),
image_path:"…/common/imgs/",
columns:[
{ id:“CodiceDb”, label:[“CodiceDb”,"#select_filter"], width:80, type:“ed” },
{ id:“RagSoc”, label:[“Ragione Sociale”,"#text_filter"], width:200, type:“ed” },
{ id:“Indirizzo”, label:[“Indirizzo”,"#text_filter"], width:250, type:“ed” },
{ id:“Cap”, label:[“Cap”,"#select_filter"], width:80, type:“ed” },
{ id:“Agenzia_Albacom”, label:[“Agenzia”,"#text_filter"], width:150, type:“ed” },
{ id:“Agente”, label:[“Agente”,"#select_filter"], width:80, type:“ed” },
{ id:“Stato_Trattativa”, label:[“Stato”,"#select_filter"], width:80, type:“ed” }
],
smart:true,
multiselect:true,
xml:“aziende_connector.php”
});

First of all no style seems to apply, it just looks like text with no boxes, then I get an error:
Message: ‘_locator’ is null or not an object
Line: 949
Char: 355
Code: 0
URI: localhost/dhtmlxNew/dhtmlx/dhtmlx.js

Furthermore it looks like the dataProcessor has been dropped…

Help pls!

Unfortunately it’s not available to attach the grid to the layout using object constructor.
You will have to use

dhxGrid = dhxLayout.cells("a").attachGrid();

method