DockingBar AllowFloat

Posted by: andreas.kren on 18 April 2018, 12:00 pm EST

    • Post Options:
    • Link

    Posted 18 April 2018, 12:00 pm EST

    I am using CommandDock with DockingBars. I want to enable the user to mainly organize his layout for himself. So I want to allow him to arrange his DockingTabs as he likes. I dont want to allow him to not dock any toolbarts. This is “AllowFloat” for me.

    If I now set the CommandDock s property AllowFloat = False I can move the toolbars as I like, but only ONE time. After the 1st drop ino more moving a docking pane is possible.

    If I set AllowFloat = True evth works ok except for the unwanted effect that the user can “float” (for me this means not dock) a docking pane.

    What can I do ?

    How can I get automatic Emails for this thread when a new answer occurs?

  • Posted 19 April 2018, 6:36 am EST

    Hello,

    As per our understanding of the requirement, you are placing C1Toolbar controls on C1CommandDock and wish the C1Toolbars to move as per the user’s requirement.

    When AllowFloat of C1CommandDock is False, the C1Toolbars placed on it still can be moved multiple times. As per the attached sample and video (Floating_C1Toolbar.gif), you can see that it is possible to meet your requirement.

    Please refer the below mentioned link for further details:

    http://help.grapecity.com/componentone/NetHelp/c1command/webframe.html#dockingandfloatingto.html

    If this is not what you mean, we request you to elaborate on the requirement further using a stripped down sample, so that we can assist you at the earliest.

    Thanks,

    Esha

    C1ToolBar_Float.zip

  • Posted 19 April 2018, 6:54 am EST

    Thank you for your answer. My example is attached. Its about DockingBar Containers (not toolbars)

    I am currently trying yours.

  • Posted 19 April 2018, 6:55 am EST

  • Posted 20 April 2018, 3:10 am EST

    Hello,

    Thank you for the sample. We can understand that you want that C1DockingTab should not be moving but the tab pages should.

    As per the sample, when C1CommandDock.AllowFloat=False, the tab pages can be moved multiple times in order to replace the position of the existing tab page in the C1DockingTab (see “AllowFloat_False.gif”). When C1CommandDock.AllowFloat=True, the tab pages can be moved around and floated, along with the tab itself (see “AllowFloat_True.gif”). It is not possible to just keep the tab pages floating without having the effect on the C1DockingTab itself. Hope this clears the issue for you.

    Thanks,

    Esha

    Output.zip

  • Posted 20 April 2018, 9:38 am EST

    Unfortunately you get me wrong. Your gif s do not show my problem.

    How can I make such gif s (as you do) then I ll show you what problem occurs with my test project. Maybe you can then tell me what I have to do to reach my goal.

  • Posted 20 April 2018, 11:11 am EST - Updated 4 October 2022, 2:48 am EST

    AllowFloat=False … I can dock the pages somewhere, the pages cannot be UNdocked (they cannot float), after the first dock, I cannnot grab and dock them again… please see the gif.

  • Posted 23 April 2018, 6:24 am EST

    Hello Andreas,

    We are discussing the case with the concerned team [Internal Tracking ID: 318862] and will get back to you once it is done.

    Thanks,

    Esha

  • Posted 23 April 2018, 7:07 am EST

    How can I get automatic Emails for this thread when a new answer occurs?

    Apologies for overlooking the question. This request is already shared with the web team and they are working on the same.

    Thanks,

    Esha

  • Posted 23 April 2018, 11:37 am EST - Updated 4 October 2022, 2:48 am EST

  • Posted 23 April 2018, 11:39 am EST

    Thank you.

    I “just” want to be able to repeat to dock as it is possible with Autofloat=True, but not allow the user to end up with a floated window. See my attached screenshot.

    Hope you understand.

  • Posted 23 April 2018, 11:39 am EST

    Thank you.

    I “just” want to be able to repeat to dock as it is possible with Autofloat=True, but not allow the user to end up with a floated window. See my attached screenshot.

    Hope you understand.

  • Posted 24 April 2018, 12:10 am EST

    Hello,

    Thank you. We understand your requirement and are using it for our discussion with the team.

    Best Regards,

    Esha

  • Posted 24 April 2018, 5:48 am EST

    Hello,

    You can make use of the C1DockingManager’s Floating event to restrict the floating of the C1DockingTab and the tab pages while AllowFloat=True. This way, you’ll be able to move the tabs around, without actually having them floating on the form. You can learn more about C1DockingManager from the below mentioned documentation link:

    http://helpcentral.componentone.com/nethelp/c1command/C1.Win.C1Command.4~C1.Win.C1Command.C1DockingManager_members.html

    A sample has been attached for your reference.

    Best Regards,

    Esha

    C1DockingBarTest_mod.zip

  • Posted 24 April 2018, 5:56 am EST

    GREAT! Thank you!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels