I want to add a checkbox column to allow users to select specific rows in the table. I have created a column at the end of my column list of type checkbox but I am not seeing the checkboxes. The column is there, but nothing else. I am just doing testing at the moment and I am using a Connector to load the data from a table:
$gridConn->render_table(“items_orig”);
Is this causing a problem with adding a non-data bound column to the grid or is this functionality just not available? I would think this would be a common thing that would come in handy. Am I missing something obvious?
Please, make sure that you’ve specified the column type in your grid to “ch”. In this case the checkboxes should appear in your column.
Also, please, make sure that the image path is specified correctly in your grid initialization.
for example:
myGrid.setImagePath("…/…/…/dhtmlxGrid/codebase/imgs/");
as the checkboxes in dhtmlxGrid are images.
Here is the sample with the checkboxes:
dhtmlx.com/docs/products/dhtmlxG … _grid.html
If the problem still occurs for you please, provide with a simplified complete demo, where the problem can be reconstructed locally.
Here you can find a tutorial about creating a complete demo:
docs.dhtmlx.com/tutorials__auxil … pport.html