How to Set List Rows Color?

Understanding basics of 1C:Enterprise platform. To start working with 1C:Enterprise platform visit Getting started page

#1
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Sep 16, 2011
Company: Oksley Shipping

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.

 
#2
People who like this:0Yes/0No
Active user
Rating: 3
Joined: Sep 16, 2011
Company: individual

See the Conditional appearance in your dynamic list settings.

 
#3
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Apr 17, 2012
Company: Zoi TechCon GmbH

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

 
#4
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Aug 13, 2012
Company:

Manager Application ?

 
#5
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Yes, this is available for the Managed application mode.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.