Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by roxana aioanei on May 06, 2008 00:15
open dhtmlx forum
how can I make a border(highlight) foreach cell from that column

Hello! In the project I am using a dhtmlxtreegrid and inside the grid section I have a editable column where the user can insert values. The question is how can I make a border(highlight) foreach cell from that column to indicate to the user that the column is editable?
T.I.A.
Answer posted by Support on May 07, 2008 03:15
The grid has not API to set default css for specific column, but you can define the necessary style directly in CSS

<row id="some">
    <cell>normal</cell>
    <cell style="border-color:red;">editable</cell>

Or do it from js code

    grid.loadXML(url,function(){
       grid.forEachRow(function(id){
          grid.setCellTextStyle(id,INDEX,"border-color:red;");
        })
    })