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."
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