I am trying to put check box against each row in my grid.
I have included dhtmlxgrid_mcol.js
And I am using:
grid.insertColumn(0,“Delete”,“ch”,50);
But no check box is appearing.
Please help me out in the same.
Try to use following code:
grid.insertColumn(0,“Delete”,“ch[0]”,50);
I am trying to do the exact same thing as above, but it does not work for me either.
I even tried the statement grid.insertColumn(0,“Delete”,“ch[0]”,50); , but it doesn’t render the column correctly at all, no text is shown in the header.
any thoughts?
thx
any thoughts on this problem? I need to insert a checkbox column into a grid after it renders. this seems to be something that should work based on what i see above
Following code works at local example:
mygrid.insertColumn(0,“Column Label”,“ch”,50);
I tried insertColumn(0,‘Bulk’,‘ch’,50);
It inserts the colum, but there is nothing in it.
The grid is built as follows:
browsedailygrid.attachEvent("onRowSelect", doOnRowSelected);
browsedailygrid.attachEvent("onXLE", doOnGridLoaded);
browsedailygrid.loadXML("grid_connector.php");
dp = new dataProcessor("grid_connector.php");
dp.init(browsedailygrid);
then inside doOnGridLoaded. I have the call to insertColumn(0). All the other column types I have tried work fine.
What version of dhtmlxGrid are u using?
dhtmlxSuite 2011 Rel.1 (DHTMLX 3.0) Professional edition build 110713
i found my problem finally.
I had not set the image path
setImagePath(“codebase/imgs/”);
checkboxes will not display without this. This would be a great addition to the documentation.