Bug Report T300335
Visible to All Users

The RibbonGalleryBarItem control cannot be enabled if the IsEnabled property is set to True

created 9 years ago

If RibbonGalleryBarItem is disabled by default (IsEnabled="False"), enabling it later doesn't enable items, shown when the dropdown is collapsed.

In the attached project (based on https://www.devexpress.com/Support/Center/Example/Details/E2201 ), RibbonGalleryBarItem.IsEnabled is bound to a bool property. If the property has the default value of true then changing the font size correctly enables and disables gallery items (enabled if font size < 12). But if the default value is false, the dropdown enables and disables correctly, but items stay disabled.

EnabledState.png - correctly enabled item (e.g. IsEnabled=True and Font Size < 12)
DisabledState.png - correctly disabled item
EnabledFromDefaultDisabled.png - showing the bug (e.g. IsEnabled=False but Font Size changed to < 12) - dropdown button is enabled, but items are disabled.

Obvious workaround: make sure that the default state is Enabled and change its value shortly after (maybe in Loaded event handler or similar).

Comments (1)
DevExpress Support Team 9 years ago

    Hello Kirill,

    Thank you for providing the test project. I will forward this ticket to our R&D team, and we will contact you as soon as we have any results.

    Thanks,
    Elliot

    Answers approved by DevExpress Support

    created 9 years ago

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      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.