Hi all,
I'm using Microsoft Dynamics® CRM 2016(8.1.1.1005) (DB 8.1.1.1005).
I have a form which contains some fields and a subgrid.
When the form loads, I check if a field has some data.
If it has no data, then I hide the subgrid. If it has data, then I show the subgrid.
When the user changes the field's value, I call a JavaScript function which hides/shows the subgrid based on the field's data.
However, when the subgrid is made visible, it's label appears, but the table does not. I have attached a screenshot below of what I see.

Does anyone know why this is happening? Is it a bug with CRM?
When I refresh the page (manually, not through JavaScript) it loads the table. See screenshot below:
