Results 1 to 5 of 5
  1. #1

    Refresh an Editable Sub Grid with JavaScript

    I have tried the following:

    • document.all['GridName'].control.refresh();
    • document.getElementById("GridName").control.fireCo ntrolEvent("OnRefresh", Sys.EventArgs.Empty);
    • window.parent.opener.document.getElementById("Grid Name").control.refresh();
    • var subgrid = Xrm.Page.ui.controls.get("GridName");
      subgrid.refresh();

  2. #2

    Refresh an Editable Sub Grid with JavaScript

    All to no avail and keep getting: TypeError: Cannot read property 'refresh' of null at refreshSubGrid
    Any help most welcome
    EstimationLines

  3. #3

    Refresh an Editable Sub Grid with JavaScript

    I just keep getting the error: Cannot read property 'refresh' of null at refreshSubGrid



    Reply























  4. #4
    Junior Member
    Join Date
    Feb 2016
    Posts
    10

    Refresh an Editable Sub Grid with JavaScript


  5. #5

    Refresh an Editable Sub Grid with JavaScript

    Hi Greame,
    Which version are you in? I tried it on 8.2 and it is working as expected.
    I tried on the out of box Account entity for the Contacts subgrid. Here is the sample script
    ========
    function refreshContactGrid()
    {
    var subgrid = Xrm.Page.ui.controls.get("Contacts");
    subgrid.refresh();
    }
    =========

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •