Forum Discussion

team_aras_meupe_com's avatar
3 years ago
Solved

background-color in TOC

Hello, I am trying to change the background color of a cell in the TOC. I have based on AngelaP's code in git, but I can't change anything. Any suggestions? My ARAS is version 11.0 SP9 This is an...
  • angela's avatar
    3 years ago

    The sample is a bit buggy I so far haven´t updated it. 

    Don´t use the -1 in the for loop -> for (int i = 0; i < this.getItemCount(); i++)

    If you want to color a custom property, you have to change the "mycss"-part -> so instead of .state use .mp_lpve_posicion . 

    The sample is basically a C# variant of the common VB solution in this forum. Color schema is optimized for Innovator 11, for Innovator 12 I would use different colors that are a bit stronger. :)