Ticket T1283150
Visible to All Users

BeginGroup in dxBar

created 6 months ago

Hello,

I want to use BeginGroup to keep two dxBar controls on the same row of a multiline toolbar irrespective of the toolbar width. The attached project shows the issue. In this project I want to keep items 6 and 7 on the same row as the form is resized. As the form widht is reduced without a BeginGroup this does not happen but when the checkbox is checked, the ItemLink for item 6 is set to BeginGroup := true and items 6 and 7 migrate to the second row together as the form is reduced in width. But, if the form width is now reduced further, item 5 migrates to a new row and a third row is created to house items 6 and 7 even though there is plenty of space on the row above. How can I avoid this?

I have attached the project and a pdf showing what I would like to happen.

Regards
Ron

Answers approved by DevExpress Support

created 6 months ago

Hello Ron,

Thank you for the sample project.

That's how our grouping mechanism works. It keeps different groups in different rows to avoid "mixing" them.

I realize that the ultimate goal is to show a single item that consists of a clickable button and an editor. However, the current implementation of our toolbars does not have a direct way to accomplish this task. Theoretically, you can try TcxButtonEditProperties to create several buttons and a textbox in a single item. However, as far as I understand, you use TcxSpinEditProperties. It does not support custom buttons, so there is no way to have custom buttons and vertical spin buttons in a single item.

    Comments (3)

      Maybe this is something that could be implemented in a future release since it is creating unnecessary unused space on the toolbar.

      Regards

      Ron

        Hi Alex,

        Further to my previous email, I have had another look and may be able to make use of the fact that the behaviour of dxBars is somewhat inconsistent because it does not “keeps different groups in different rows to avoid "mixing" them.”

        The example I sent you is shown below

        goes to  and then  and the group New Item 6 and New Item 7 indeed gets a separate line.

        However, with a separator between NewItem 3 and New Item 4
        goes to  and then to

        Now there are two groups on the same row. I think this emphasises that the first example which leaves a lot of unused space really does not make sense particularly since the group is not placed on a second row when the form is wide enough to contain all the controls in a single row.

        Anyhow, I think I can make use of this inconsistency by placing another BeginGroup on my bar to obtain the behaviour I want so please don’t change anything  unless it is to eliminate the unused space in the first example.

        Regards
        Ron

        AP AP
        Alex Pa (DevExpress Support) 6 months ago

          Hello Ron,

          Thank you for the update. No worries: we do not have plans to change the behavior of our standalone toolbars, and strive to avoid unexpected changes.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.