probem when i use attachgrid with a window

dear all,

when i create a window with an attached grid ( see the code below ). The init function of the grid generates an error and the time to initalize my grid is very long.
the generated error is : stack overflow
can you help me ?
Thanks

 function f_ManageSelectedProjects() {
SelectedProjectLayoutWin= new dhtmlXWindows();
SelectedProjectWin=SelectedProjectLayoutWin.createWindow("SelectedProjectWin", 20, 30, 200, 200);
SelectedProjectWin.setText("test");
SelectedProjectGrid=SelectedProjectLayoutWin.window('SelectedProjectWin').attachGrid();
	SelectedProjectGrid.setColAlign("left,left,center");
	SelectedProjectGrid = SelectedProjectWin.attachGrid();
	SelectedProjectGrid.setHeader("aaaa,bbbbb,cccccc");
	SelectedProjectGrid.setInitWidths("50,50,59");
	SelectedProjectGrid.setColTypes("ro,ro,ro");
	SelectedProjectGrid.setColSorting("str,str,int");
	SelectedProjectGrid.init();
	dp_SelectedProjectGrid = new dataProcessor("CNX_ListOfProjects.php");
	dp_SelectedProjectGrid.init(SelectedProjectGrid);
	SelectedProjectGrid.clearAndLoad("CNX_ListOfProjects.php"); 

	}

Hello

you can try to enable Smart Rendering mode to improve performance: dynamic or static depending on number of rows.

dhtmlx.com/docs/products/dht … tatic.html

dhtmlx.com/docs/products/dht … fetch.html

Thank for your response but my really problem and than i have an error on init fonction of my grid and the code is a&borted … and then it’s impossible to load the grid.?
Thanks.

Check that dhtmlxcontainer.js is inluded.
But the provided code looks correct. So, if the problem still occurs, we need some demo that allows to recreate the problem. You can either attach the sample here or provide it to support.dhtmlx.com/

Thanks , i will test my code to verify all line and i will post a request if needed.