Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Dec 18, 2007 22:30
open dhtmlx forum
dhtmlxgrid hightlight the particular row

Hi,

I have separate buttons previous and next.When i click the next and previous buttons,how can i highlight the particular row in the grid,highlight means when i click the next button the next row in the grid should highlight like the rectangular box over the text of the grid.

please help me
Answer posted by Support on Dec 19, 2007 02:13
>>highlight means when i click the next button the next row in the grid should highlight like the rectangular box over the text of the grid.

If you mean just visual marking it can be done by applying some custom css styles, which will cause necessary change in look

    grid.setRowTextStyle(row_id," any css rules here ");

or access row directly as
    grid.rowsAr[row_id].className="some";

In most cases changing row bg color may be enough

    grid.setRowColor(row_id,"red");