How to highlight portal row?

How can I highlight the current row of a portal? Also how can I alternate portal row color?

Is there a possiblity? Can someone show me how to do it??

Thanks a lot!!

portal component also has the background color property.
So you can highligth it as you like.

Yes I can see the rowBGColorCalculation property for the portal. Somehow I missed it. But could you give me an example for this?

I have created a calculation called row_bgcolor in the related table. The calculation look like this.

   var index    = arguments[1]; 
   var selected = arguments[2]; 
   if (selected) { 
      return "#CBDEF9"; 
   } 
   else { 
      if (index % 2 == 0) { 
        return "#FFFFFF"; 
      } 
      else { 
         return "#FFFFFF"; 
      } 
   }

But this calculation does not work well. Could you show an example please??

Also this rowBGColorCalculation works well for muti line portal as well?

Thanks

   var index    = arguments[0]; 
   var selected = arguments[1]; 
   if (selected) { 
      return "#CBDEF9"; 
   } 
   else { 
      if (index % 2 == 0) { 
        return "#FFFFFF"; 
      } 
      else { 
         return "#000000"; 
      } 
   }

Thanks for pointing me out the correct calculation.

The calculation only works with non multiline portal. It does not work with multiline portal. Also If you use a transparent field on the portal again bgcolor calculation has no effect. Any idea please?

Thanks

i will look at the multiline portal.

And yes if you make something transparant then it will not show the background color. That’s a thing we can’t do anything about.

It would be better if you can fix the transparency issue. In a single field portal, I used to size the field to the full width & height of a single portal row. In this case hightlight would be useless if the field is not transparent.

Otherwise I would have to use showHorizontalLines & showVerticalLines property to hightlight the current row. In this case is it possible to set the color for horizontal & vertical lines on the portal?

Thanks

with a multiline portal component the background coloring works now. A multiline portal (or listview) only colors the body not the components if you want that then youse a single line portal (tableview)

If you clicked outside of the portal or on the portal body, the background coloring works. But when you click on the field in the current row of the portal then the hightlight does not work.

This is currently a know problem for listview.
I will try to fix this for the final of 2.2. So that what ever the bgcolor calc returns for the selected edit row i will set it.

ok Thanks