Which event should I subscribe to, to get a notification every time a pane's state changes to/from floating?
Is there a event on the DockManager itself? Or on the ContentPane?
Thanks in advance
Hello,
In order to get notification about making a pane floating you can subscribe to the paneDragOver event of the Dock Manager and check if its action is of type IgcFloatPaneAction(its type equals IgcPaneDragActionType.floatPane).
Unfortunately, currently there is no event that notifies you that a pane was docked, but we could easily expose this information in the paneDragEnd event arguments.
It would be helpful if you can tells us what is the scenario that you try to achieve using these notifications.
Sincerely,Diyan DimitrovSenior Software Developer
Need this info for keeping the data about the floating pane location and so the when the pane is closed and reopened again, it should pop up at the last float location. IS there an easy way to toggle Hide and show the Panes, and also to show them at the last Docked or last floated location?
Implementing this functionality with the current API is a bit challenging mostly because when you close a content pane which is the only child of its parent, the parent gets removed from the layout too and then its grandparent is checked and so on. So if you need to restore a pane in the layout you will have to add all of its parents that were removed.
As I have mentioned in your other thread we are going to work on a feature that allows you to close a pane without removing it from the layout.
Agreed. Appreciate the quick turn around .... Kudos to the team !!
Thank you for taking time to convey your comments! We consider our customers feedback to be crucial for steering improvements at Infragistics.