• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1555
  • Last Modified:

CRM 4: How change item background color depend on specific attribute ( using javascript)

Dear all,
Useing this code :
var grid = document.getElementById('gridBodyTable');
var a = document.all['crmGrid'].InnerGrid.SelectedRecords;
var selectedItems = new Array(a.length);
for (var i=0; i < a.length; i++)
{
   alert(a[i][1]);
}

How can retrive All record on the view not only selected ones.
Then how Retrive Specific Col value like Account Name , Phone
And how set the background color of specific row?

thanks


0
ethar1
Asked:
ethar1
1 Solution
 
Aftab_KhateebCommented:
have a look at this article...
http://blog.odynia.org/?s=colour+grid

Please let me know how u go
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now