cancel
Showing results for 
Search instead for 
Did you mean: 

reg table coloring

jnmurthi
Participant
0 Kudos

Hi All,

I am using tables in my application where in the requirement is to have alternate colors for rows....i was successful in doin tht.....but when i am sorting the table....the data is getting sorted and with that the colors of the rows are also changing. To be more clear........the alternate colors have been set to the table cell wise and so when the data is getting sorted.....i.e, after the sorting is done....the alternate row colors for the table is not working.....the colors are getting changed with the data.

can i have any solution for this problem

please do help me out in this issue....at the earliest....

thanking you

regards,

Murthy.

Accepted Solutions (0)

Answers (2)

Answers (2)

sridhar_k2
Active Contributor
0 Kudos

Hello Murthy,

Here is a blog for table colors. It is working for me.

/people/sap.user72/blog/2006/04/25/colourful-table-in-web-dynpro

Regards,

Sridhar

Former Member
0 Kudos

Hi,

I have no experience doing this, but I guess you can create a property in your table row structure of type 'TextviewDesign'.

For each row determine the right design.

Then, bind each tablecell editor of your table to this property of your context structure.

After sorting, the design should not change as data changes.

If I misunderstood you question, and you want the rows to be alternate when they are not because of sorting, you could try to create your table dynamically in wdDoModifyView.

Good luck, Roelof