-
Notifications
You must be signed in to change notification settings - Fork 7
Description
When running the Grid in WEBGUI, and you pop out the Window, the BBjHTMLView does not automatically trigger a re-render.
We may want to catch the JS side event for undocking and re-render the grid in its initial state, perhaps we can also do better and fill it with the most recent data and formatting.
It's already pretty clear that the pop-out cannot be lossless as the server has no permanent trace of the grid status.
There is a callback in the window listeners object in javascript options :
[image: image.png]
These callback functions are called in all connected browser windows:
- windowDocked fires after the webswing window has been docked
- windowUndocked fires after the webswing window has been undocked
This is how you can determine the undock state of the window:
In Javascript:
webswingInstance0.getRenderedWindows()[0].getDockState() (returns
0=docked, 1= undocked, 2= toBeUndocked)In Java:
WebswingUtil.getWebswingApi().isUndocked(Window window)