Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Les Nightingill on Apr 29, 2007 19:14
open dhtmlx forum
When I add a row to dhtmlxtreegrid using the addRowBefore api call, I would like to be able to control the style of the added row using a css class (so that it matches the style of the existing rows in the grid). How can I assign a "class" to the added row?

Answer posted on May 05, 2007 15:32
There is no direct way to do such action through JS API, you can set any css string through
    grid.setRowTextStyle(...

If you need to set exactly css class, you can use next workaround
   var new_row=grid.addRowBefore(....
   new_row.className="some_css_class";
Answer posted by Andrei (Support) on Dec 11, 2014 14:57

To find more precise comments upon this issue, we can offer you read about gantt chart dependencies and combobox editable.