Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by DavidO on Apr 28, 2008 17:12
open dhtmlx forum
Set cell class from javascript

Hello. In dhtmlxTreeGrid, is it possible to set the cell class attribute from within an addRow() function or seperately?

For example I have:
<row id="31">
<cell class="select">category</cell>

But when I use mygrid.addRow() I don't see how to set this class attribute to the newly created cell.

Thank you.
Answer posted by Support on Apr 29, 2008 01:48
Can be done in next way

    grid.addRow(id,values)
    grid.cells(id,index).cell.className="select";