Is $('.appendGrid').trigger('change'); what you want to execute on button click? If so, you should also add that statement outside the click method so the change event is triggered on page load.
Why are you running this native JavaScript if you are using jQuery for everything else. The jQuery equivalent is much shorter - should be something like:
Is the code executing correctly? Does the scripting console show any problems? Because currently I see in your example that the closing }); for the ready part is currently missing.
When you’re not using jQuery, the standard event handling code is as you’ve used it:
I understand what you’re saying but I think my description wasn’t very well written because that’s not quite what I’m trying to do. I’ve got a form that when saved/published will use appendGrid to show the results. I want it to show the results even when the page is loaded. Currently there are three results that should be shown but I have to click save or publish to see them, that’s fine but I also want them to show when the page is loaded.