Skip to Content
avatar image
Former Member

reg table coloring

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 24, 2007 at 12:51 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 24, 2007 at 12:55 PM

    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

    Add comment
    10|10000 characters needed characters exceeded