• Post Reply Bookmark Topic Watch Topic
  • New Topic

Iterating all the rows and populating row classes attribute in the dataTable

 
appi Bhimavarapu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have situation where i need to iterate through all the rows and check a condition and populate the row classes attribute, can some one tell me how to do that?
 
Victor Bucutea
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do that by javascript with .className() , or if you would like a server side aproach you can set a binding="#{pageBean.hcolumnBean}" and have hcolumnBean setter something like that

setHColumnBean(UIColumn col) {

col.setStyleClass("your css class name");

}

You'll have to give us more details .
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!