Microsoft Dynamics CRM

{Tips and Tricks} Put icons/smileys in sub grids Dynamics CRM 2013

I have been spending last few blogs to do changes to Sub-grids in Dynamics CRM 2013.

Different customers want to see different representation of their customer data, something visual is often better perceived by customers. I often find customers talking about a visual element on CRM sub grids, so it is more visible than having to read a text field for status on sub grids. CRM off course doesn’t yet let us show icons on Grids. Here is a workaround I tried to achieve for one of the demos. I have used unsupported scripting to achieve this, but still it will work fine as long as DOM structure of CRM forms is not changed, after which another investigation and relook into this code might be required. However, it is often more visual to see cases on sub-grid like the one below, which makes us understand that first two are completed and the last two are in progress.

clip_image001

Now, if you want to try it here is the script bits:

How to put it up in a function and other stuff on Form load is mentioned in my other blog: Click here

Just put the below code in place of Logic here from the blog linked above:

$(‘#accountcasessgrid td’).filter(function() {
    return $(this).text() == ‘Active’;
}).
html(“<img src=’web resource path for Active ‘>”); $(‘#accountcasessgrid td’).filter(function() {
    return $(this).text() == ‘Resolved’;}).
html(“<img src=’web resource path for Resolved’ >”);

You are done. Hope it helps!

Advertisements

1 thought on “{Tips and Tricks} Put icons/smileys in sub grids Dynamics CRM 2013”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s