Question

I have a custom entity which has an entry in the sitemap. When I load the entity in the main window, it opens the grid view on the right - standard behaviour so far.

I now want to change some thins in the DOM of the grid body. Therefor I should execute a Javascript while loading the grid. But I have not found any way to do this yet. I sthis possible?

My second way was to but the grid into an Iframe and then do the task on load. This works, but I loose all the buttons from the entity.

Thank you

Was it helpful?

Solution

The best (and probably only) way I can think of to attach to the load of the homepage grid is to add your functionality to a CustomRule for an EnableRule for any object in the custom homepage grid ribbon, which will execute at the time the ribbon loads.

Only caveats: you probably will have to do some validation to make sure the grid is in the right readyState before changing anything, and you'll need to make sure to return true if you actually want that ribbon object to be enabled.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top