Setting textcolor when inserting new row to TreeGrid

Develop and Deploy Cross-Browser Web Apps .

Setting textcolor when inserting new row to TreeGrid

Postby joedarock » Wed Jun 15, 2016 7:48 pm

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.
joedarock
 
Posts: 159
Joined: Thu Nov 19, 2015 8:39 pm

Re: Setting textcolor when inserting new row to TreeGrid

Postby support » Fri Jun 17, 2016 8:29 am

try this:

tg.insertRows({cellStyle:"color:#00ff00;", cells:["Title","text"]});
support
 
Posts: 342
Joined: Sat Apr 27, 2013 9:22 am


Return to CrossUI for Web Apps

Who is online

Users browsing this forum: No registered users and 1 guest

cron