Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by David on May 27, 2008 06:40
open dhtmlx forum
color change in row of grid ..

how can we change the color of paticular row on the click of html button ??
Answer posted by Support on May 27, 2008 07:00
There are few ways, most simple is
    mygrid.setRowColor(id,"red")
        first - row ID
        second - new color value
Answer posted on May 27, 2008 21:53

Actually on the click of a html button i am getting row id of some rows based on a particular condition  using an ajax function .Now i have to change the color of these rows .

 I think cannot use  "mygrid.setRowColor(id,"red")" inside that ajax function . Help..........

Answer posted by Support on May 28, 2008 02:26
I'm not sure, why you can't use this functionality from your ajax function ?
The method can be called from anywhere , you just need to specify correct object reference and correct row ID