I am using a MultiStep form (MSF) with a subgrid (list) and given the nature of the system, the data that the subgrid shows can change while the subgrid is displayed, and I have the need to refresh the current step of the subgrid, without moving away from it.
One proposal to refresh the subgrid is that you effectively use JavaScript to mimic a ‘click’ on of the sort columns of the subgrid and this causes a refresh and this is nearly correct. I use this script
var sortLink = document.querySelector('th a[href="#"]');
if (sortLink) {
sortLink.click();
}
When the script runs, I have effectively sorted the CreatedOn date to ‘oldest’ at the top and as the screenshot shows, the new document 27, appears as it should, at the bottom.
However, if you click the ‘created on’ column sort again, then as the screenshot below shows, the new document disappears.
If we click on the ‘created on’ sort column, it re-appears.
Has anyone any idea why this would happen? It seems near impossible to refresh the data in the current step without moving away from that step. I have tried creating hidden ‘save’ buttons and refreshing them via Javascript but it’s the same issue.