Categories | Question details Back To List | ||
How to disable a checkbox for a particular cell in a datagrid via XML? I use the Enterprise version of Datagrid. I have a checkbox column with a "ch" type. In some cases I need some of checkboxes disabled. How could I disable a particular checkbox cell via XML? I think having a functionality like the following would do just fine: <cell type="ch" disabled="true">cell_value_goes_here</cell> as well as having a new type - "chro" Thank you in advance. Answer posted by Support on Oct 07, 2008 03:19 You can use XML as <cell type="ch" disabled="true">cell_value_goes_here</cell> And next js code grid.loadXML(url,function(){ grid.forEachRow(function(id){ var cell = grid.cells(id,INDEX); if (cell.getAttribute("disabled")) cell.setDisabled(true); }); }); Answer posted by Dimitar Paskov on Oct 07, 2008 04:55 Thank you, it works. |