Advertisements
Home > CRM 2011, JScript > Refreshing Sub grid and Main grid using Jscript in CRM 2011

Refreshing Sub grid and Main grid using Jscript in CRM 2011

Hi,

Below is the script to refresh the sub-grid

    var mySubGrid = Xrm.Page.ui.controls.get(“{sub-grid name}“);

if (mySubGrid) {

mySubGrid.refresh();

}

To get the sub grid name

  • Open the entity customization form
  • In designer, double click on subgrid
  • In the dialog window, copy the “Name” value
Get Sub grid  name

Get Sub grid name

 

To refresh the main grid, use below script

    if (crmGrid) {

crmGrid.Refresh();

}

Hope it helps 🙂

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

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

%d bloggers like this: