Onrefresh Not working Anymore after upgrading to Polaris

We started facing issue in one of our organization after it is upgraded to Polaris. In oportunity form we have used attach event to attach onrefresh event to subgrid to refresh opportunity form after doing any modification in line items.

var ProductSubgrid = document.getElementById(“opportunityproductsGrid”);

       ProductSubgrid.attachEvent(“onrefresh”, FunctionName);

So I tried to check if someone else is facing this issue and found this thread which helped me to fix this issue, we have to do below changes to make it work in Polaris

var ProductSubgrid = document.getElementById(“opportunityproductsGrid”);


After this it’s working fine.

Hope it will help somebody !!




Filed under MS CRM 2011

4 responses to “Onrefresh Not working Anymore after upgrading to Polaris

  1. Mikhail

    Very big thx!

  2. moowoo

    thanks, you just saved my day, by the way, your getoptionset is not working on IE10. any idea about that?

  3. Doesn’t work for me on CRM 2011 RU 13.
    When I look at my subgrid variable, it is null. Any ideas?

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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s