Desktop version

Main > Forum > 1C:Enterprise Platform > Studying 1C:Enterprise platform > How to Set List Rows Color?

Forum

Search UsersRules
How to Set List Rows Color?
#1
Active user
Points:: 0
Joined:: Sep 16, 2011

How can I change the DynamicList's rows color?
I have the Customer Order list form and would like to change its rows color to red if it is overdue and to blue if it is not paid.

Profile
#2
Active user
Points:: 32
Joined:: Sep 16, 2011

See the Conditional appearance in your dynamic list settings.

Profile
#3
Just came
Points:: 10
Joined:: Apr 17, 2012

This is a sample procedure for installation the background color:
It should be inserted into a Events of Dynamic List.

Code
Procedure OnRowOutput(Element,RowAppearance,CurrentData)
   RowAppearance.Cells.Column2.BackColor = WebColors.Red;
   If CurrentData.LineNumber = 2 Then
      RowAppearance.BackColor = WebColors.Blue;
      RowAppearance.TextColor = WebColors.Yellow;
      RowAppearance.Cells.Column2.BackColor = WebColors.White;
      RowAppearance.Cells.Column2.TextColor = WebColors.Green;
   ElsIf CurrentData.LineNumber = 3 Then
      RowAppearance.BackColor = WebColors.Red;
   EndIf;
EndProcedure

Profile
#4
Just came
Points:: 0
Joined:: Aug 13, 2012

Manager Application ?

Profile
#5
Guest
Points::
Joined::

Yes, this is available for the Managed application mode.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.