Page 1 of 1

Setting textcolor when inserting new row to TreeGrid

PostPosted: Wed Jun 15, 2016 7:48 pm
by joedarock
I have a treeGrid which is aliased to "tg". I insert rows using this method:
tg.insertRows(["Title","text"]); where "Title" is the string for the first column in the row and "text" is the string for the second column. This works.

I'd like to include style information to specify the whole row's text color at insert-time. I can't figure out how to write a single tg.insertRows line to do this.

Re: Setting textcolor when inserting new row to TreeGrid

PostPosted: Fri Jun 17, 2016 8:29 am
by support
try this:

tg.insertRows({cellStyle:"color:#00ff00;", cells:["Title","text"]});