Skip to content

[Bug] In WEBGUI, when popping out the window, the grid becomes blank #276

@StephanWald

Description

@StephanWald

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)

Metadata

Metadata

Assignees

Labels

Change: ExpertNeeds specialized, in-depth reviewClient: GUIthe issues is related to GUI applicationsPriority: LowThe issue will not be seen by most users. Usually the issue is a very specific use case or corner caStatus: ConfirmedThe issue is a bug and has been confirmed and an action will be taken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions