• Post Reply Bookmark Topic Watch Topic
  • New Topic

highlight first row in datatable onload  RSS feed

 
Aparna Ram
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like to highlight the first row in my datatable, onloading of the page. How do I go about doing the same?



Thanks much.
 
A. Dusi
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since you are using t:datatable you can try using rowIndexVar attribute in your datatable attributes. Check if your rowIndexVar == 0 for each row and specify your styleClass accordingly.
If you are looking to highlight the headers then use headerClass atrribute.

Hope this helps.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!