Refresh Associated View Grid RRS feed

  • Question

  • Is there a way to refresh associated view grid (not a custom subgrid)? 

    Specifically, we have functionality that closes activities on the Account form, but we need to refresh the activities grid to reflect the update.

    I know how to refresh the entire page and would rather not do it that way. I also know that control.refresh() works with subgrids, but I can't seem to figure out how to get the control name for the activities associated view grid on the account form.

    Thanks in advance.

    Wednesday, September 12, 2012 1:04 PM


All replies

  • Hello,

    I haven't found supported solution but following unsupported works fine:

    if (document.getElementById("areaActivitiesFrame") != null)

    Freelance Developer for Dynamics CRM 4.0/2011

    Wednesday, September 12, 2012 1:10 PM
  • Hi Andrii --

    Thanks for the quick reply.

    Will that work for the grid that opens when you click on the Activities link on the account form's lefthand navigation, or is that for the activities grid that appears on the Notes and Activities tab?

    Thanks in advance.

    Wednesday, September 12, 2012 1:18 PM
  • Provided code should refresh "lefthand navigation" element.

    Freelance Developer for Dynamics CRM 4.0/2011

    • Marked as answer by Eric_Blanco Wednesday, September 12, 2012 2:42 PM
    Wednesday, September 12, 2012 1:22 PM
  • Awesome, thanks! That worked.

    In our case we had to add the parent qualifier because the code is executing from a custom button in the activity's subgrid ribbon:

    if (window.parent.document.getElementById("areaActivitiesFrame") != null) {

    Wednesday, September 12, 2012 2:45 PM