Within DockingManager, is there a way to allow a tabbed document to be moved (i.e., SetCanDrag = true) without the tabbed document being able to float (i.e., SetCanFloat = false)? Having these 2 properties set for content prevents the tabs from being manipulated. However, setting SetCanFloat = true allows the tabs to be moved.
I'm attempting to prevent the tabs from floating, but want the user to be able to move them.
Any suggestions? Thanks.
Hi Brent,
Based on your query, we assume that you are trying to change the state without dragging when CanFloat is false. You can achieve this by using the dropdown menu to change the state or by utilizing the SetState method in DockingManager. Please refer to the attached sample and video for your reference.
Code Snippets:
|
DockingManager.SetState(SolutionExplorer,DockState.Dock); |
If we misunderstood your query, Could you please share the following details? It will help us to provide better solution asap.
Regards,
Vignesh.
In the provided example, remove the content "toolbox", "solution explorer" and "properties". All I'm concerned about is the tabs that you have, therefore the provided solution of selecting the context menu does not work since it won't be available to the user.
In the provided example, I'd like the user to be able to drag "Tab1" and place it between any other tab. However, if the docking manager prevents floating windows, it appears that this cannot be done.
The end-user will not have access to any of the context menu's of the docking manager of the tab items, they should just be able to simply drag and drop any tab into any other location within the tabs provided.
Let me know if this can be done without allowing floating windows.
Thanks.
Further to my last comment, in the example provided, Tab5 XAML definition states
syncfusion:DockingManager.CanFloat="False"
and it cannot be moved to be placed between other tabs. This is exactly the scenario.
How can Tab 5 (in the example provided) be moved by a user dragging the tab via mouse BUT ALSO not allowing the ability to float?
Hi Brent,
We have prepared a sample based on your requirements. To prevent the document window from floating, you can set IsVS2010DraggingEnabled to false. With this property, you can move the document item to a new group or to available groups by drag-and-drop, without floating it. Please refer to the sample for your reference. If we misunderstood the problem, please provide more details.
Regards,
Raghavendra
Thanks. While what you provided does do what I desire, there is a bug. With the latest example provided, drag any tab to another group, for example Tab2. This works fine.
Now drag Tab2 back to the original group with the other tabs. Tab2 disappears! Clearly not desirable, and I think this is a bug.
If there is a way to prevent this behavior let me know. Thanks.
Hi Brent,
We have confirmed the reported scenario is a defect and logged a report for the reported scenario “Document tab disappears while adding back to the group through drag and drop in DockingManager”. We will provide the fix in the Weekly NuGet release on 09th April 2024.
You can track the status of this defect using the following feedback link: https://www.syncfusion.com/feedback/51859/document-tab-disappears-while-adding-back-to-the-group-through-drag-and-drop-in
If you have any more specification replication procedures or a scenario to be tested, you can add it as a comment in the portal.
Please let us know if you need any further assistance.
Note: The provided feedback link is private, and you need to log in to view this feedback.
Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”
Hi Brent,
We have included the fix for the reported issue “Document tab disappears while adding back to the group through drag and drop in DockingManager” in our Weekly NuGet release version 25.1.39 which is available for download ( https://www.nuget.org/).
We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you require any further assistance.
Regards,
Karthick Arjunan