Related item Row Colouring

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
Hatice Togrul Gürol
Posts: 24
Joined: Thu Nov 13, 2014

05 Feb 2015

Hi Dmitry ,

I want to make row color in a related items' rows.

I do it in separete list by adding script editor. I use row color using jquery


$(document).ready(function () {

$Text = $("td.ms-cellstyle.ms-vb2:contains('High')"); $Text.parent().css("background-color","#01DF3A");

$Text = $("td.ms-cellstyle.ms-vb2:contains('Rejected')");

});

But when I want to use this list view in my related items, this list is not showing with this color.It look default view.This script editor is not working in related items.

could you please tell me how can I do this for related items?

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

06 Feb 2015

Hi,

The following code works for me:

Code: Select all

$("td.ms-vb2:contains('High')").parent().css("background-color","#01DF3A");
Please, set Render property of the Related items control in Server and insert the code above into JS-editor.

wdeffner
Posts: 30
Joined: Thu Sep 22, 2016

25 Oct 2016

I defined the changing row-colors by setting the template of the original view in sharepoint to "shaded". However the related-items-list ignores this setting and displays all rows in white

Thank you!

Wolfgang

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

26 Oct 2016

Hi,

Try to switch Render property of the Related Items control to Server in Forms Designer.

wdeffner
Posts: 30
Joined: Thu Sep 22, 2016

27 Oct 2016

Hi,this makes difference, template "shaded" (iin german: "Schatten") is not applied.

Thanks,

Wolfgang

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests