Tree grid row and cell selection

Hi Isomorphic,

We have a requirement that both cell and row selection should be possible in a Tree grid. For that, We thought that we can have a check box in the particular cell along with its data that we want to select. In this case, row selection should be possible. If the user clicks on the particular check box in a cell, we can assume that the cell is selected. If the user clicks on other cells which are not having the checkbox, the row should be selected. We need the check box along with some data comes from the server in a cell. And one more thing, once the check box in a cell was selected, we need to get all cell names and the record in which check box was selected. Based on these cells selection, we will perform some operation. How do we do this?   

We thought that this might be the solution for our requirement. Is there any other solution available? Please help us.

Thanks in advance.

The simplest approach might a separate, adjacent column of type:“boolean” and with canToggle:true.

Otherwise, you’ll need to use formatCellValue to output both an <img> tag and your actual data, and you’ll need to add event handlers to the <img> that will update a property on the record that you use to track the selected status of the cell, then refreshCell() to show the checkbox in a different state.