Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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 .
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!