setRowColor

The function setRowColor receives two parameters, the first one is the rowId, the second is a color.

I try to use this function but I can’t do it, always ocurr a javascript error. Could you provide me an example to use this function.



Thanks

Actually there are no any specific requirements for this function, it receives row ID and color as a string, the only way to get javascript error here - provide not existing ID

    mygrid.setRowColor(1,‘red’);

Please beware that
- first parameter is rowID ( not row Index )
- you need to call this command only after XML loading ( xml loading is async )
       mygrid.loadXML(url,function(){
          mygrid.setRowColor(1,‘red’);
        });