Page 1 of 1

Related item Row Colouring

Posted: 05 Feb 2015
by Hatice Togrul Gürol
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?

Re: Related item Row Colouring

Posted: 06 Feb 2015
by Dmitry Kozlov
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.

Re: Related item Row Colouring

Posted: 25 Oct 2016
by wdeffner
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

Re: Related item Row Colouring

Posted: 26 Oct 2016
by Dmitry Kozlov
Hi,

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

Re: Related item Row Colouring

Posted: 27 Oct 2016
by wdeffner
Hi,this makes difference, template "shaded" (iin german: "Schatten") is not applied.

Thanks,

Wolfgang