Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Subgrids shows link To load records, click here instead of data

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have 8 sub-grids on my Opportunity form which are part of sections not visible by default.

I have implemented JavaScript calls on form load to toggle the sections based on the selected value of an option-set.

The issue is that after using the system for some time, the grids stop populating the records and display a link stating "To load <Subgrid name> records, click here."

 SubgridError.PNG 

Nothing happens when I click the link & upon inspecting the element I found that the onclick event of the link simply returns false.

Below is the code from developer tools for the link in VehicleLookup subgrid. 

<a id="LoadOnDemandMessage" class="ms-crm-List-LoadOnDemand" onclick="return false;">To load Vehicles records, click here.</a>

To fix the issue I tried to refresh the grids using JavaScript by executing the refresh() method of sub-grid control but I get an exception stating "Cannot read property 'refresh' of null".

I also removed all my JavaScript from the form hoping, it might be causing the issue but even then the sub-grids are not loading the records.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Subgrids shows link To load records, click here instead of data

    Hi Goutam,

    The subgrids are part of multiple tabs.

    One tab contains 6 sub grids and the remaining 2 subgrids are part of 2 different tabs.

    Expanding and collapsing the tabs also does not refresh the grids.

    I clear the cache and force the refresh the tab but that also fails to reload the grids.

    As for refresh() on the subgrid, even when the grid exists the refresh method still throws an exception indicating refresh does not exist.

  • gdas Profile Picture
    gdas 50,089 on at
    RE: Subgrids shows link To load records, click here instead of data

    Hi Vikas,

    Try to add each subgrid in a tab and then expand the tab to see subgrid , see the results.

    In addition when you are doing refresh subgrid might be subgrid has not loaded , so put settimeout or call setintervel till the control get and do the refresh.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Subgrids shows link To load records, click here instead of data

    community.dynamics.com/.../240968 post has a similar issue but it seems the it is still not fixed

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,492 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans