• Post Reply Bookmark Topic Watch Topic
  • New Topic

Primefaces data table single row selection and row expansion together

 
K. Tsang
Bartender
Posts: 3610
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello rancher

I have a search page and the results are displayed using Primefaces data table. I used row selection feature so that once selected, it goes to another page for editing. This works fine until I need to put additional search sub-results through row expansion.

The thing I don't like is that the background of the expanded row change color (just like a row in the outer data table). Making the page or table look weird.

How can I disable the selection in expanded rows or at least don't change background color?

Thanks



 
Tim Holloway
Bartender
Posts: 18417
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not familiar with this feature, but usually you do want to visually highlight a row when it's different from all the other rows (for example, when you've expanded it).

If you don't like it, however, you should be able to override the CSS for the offending elements. There should be a list of the classes you need to override in the Primefaces docs.
 
K. Tsang
Bartender
Posts: 3610
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim. I will see what can be done. :)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!