Related item Row Colouring
- Hatice Togrul Gürol
- Posts: 24
- Joined: Thu Nov 13, 2014
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?
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?
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
The following code works for me:
Please, set Render property of the Related items control in Server and insert the code above into JS-editor.
The following code works for me:
Code: Select all
$("td.ms-vb2:contains('High')").parent().css("background-color","#01DF3A");
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
Try to switch Render property of the Related Items control to Server in Forms Designer.
Try to switch Render property of the Related Items control to Server in Forms Designer.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 6 guests