cancel
Showing results for 
Search instead for 
Did you mean: 

How to set hightlight to a sap.ui.table.Row

former_member197944
Active Participant
0 Kudos

Hi experts, now I'm developing an application with a sap.ui.table.Table in it. From the Demo I know I could set highlight to the rows with the aggregation rowSettingsTemplate in the table.

But this way is operating on the whole table. Is there anyway to operate on a specific sap.ui.table.Row to set highlight to it? Thank you so much!

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member484715
Contributor
0 Kudos

There are many ways you can achieve it, depending on how you are getting your data.

You can use formatter functions if you are getting data from back end. In the formatter functions, you could specify the condition for the row you want highlighted.

You can use the addStyleClass, for the specific row :

<row>.addStyleClass(myClass);

Or, based on some event if you want to highlight the colour , you can add an event listener to the row and in the controller write the logic for it.

Hope this helps,

Regards