Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Apr 17, 2008 09:48
open dhtmlx forum
Hi , thanks this is exactly what I required. The only thing is how can I set the CSS style of a column using the ...

Hi , thanks this is exactly what I required. The only thing is how can I set the CSS style of a column using the dhtml API. not from xml , I want to add a dummy row when someone click on add button and then he can edit the values. so any way to provide css style for a column

thanks & regards
Kaushal
Answer posted by Support on Apr 17, 2008 10:14
You can't set cell styles for whole column, but you can set it for necessary cell as
    grid.setCellTextStyle(rowID,column_index," any css string here").

or assign css class as
    grid.cells(rowID,column_index).cell.className="some"