Bug Report T253995
Visible to All Users

ASPxRichEdit - It is not possible to hide or disable items in the built-in ribbon using the Visible and ClientEnabled properties

created 10 years ago

I cannot get any of the ASPxRichEdit ribbon items to hide. I followed the code in T218988 and the ASPxSpreadsheet ribbon item hides as expected by setting "Visibility = false" but not the ASPxRichEdit ribbon item. It also appears the ClientEnabled property doesn't work either.

I have attached the code demonstrating the behaviour.

I have found a workaround for hiding by adding the item I want to hide to a new RibbonGroup and setting the group visibility to false:

DevExpress.Web.RibbonTab fileTab = ASPxRichEdit1.RibbonTabs[0];
            DevExpress.Web.RibbonGroup hiddenGroup = new DevExpress.Web.RibbonGroup();
            hiddenGroup.Visible = false;
            hiddenGroup.Items.Add(fileTab.Groups[0].Items[0]);

However, this will not work for disabling an item.

Comments (3)
DevExpress Support Team 10 years ago

    Hello Chris,

    I have reproduced this behavior and forwarded this message to our R&D team for further research. We will inform you once we have results.
    Updated:

    For now, it is possible to hide and disable ribbon items via the following code:

    ASPx
    <Settings Behavior-CreateNew="Disabled" Behavior-Open="Hidden"></Settings>

    You may use it as a possible workaround for your case.

    See Also:
    Document and Operation Restrictions
    ASPxRichEditBehaviorSettings Members

      I had the same problem as Chris. I found this ticket when I already spent some time and wrote my own bug report. It would be good if you could update answers to tickets T218988 and T147705 with link to this answer to increase its visibility.

      DevExpress Support Team 9 years ago

        Hello Slaven,

        Thank you for your feedback. I will update these threads.

        Answers approved by DevExpress Support

        created 10 years ago (modified 9 years ago)

        Hello,

        We have researched this behavior. The ASPxRichEdit control provides a special API for disabling and hiding the command from its built-in ribbon:

        ASPx
        <Settings Behavior-CreateNew="Disabled" Behavior-Open="Hidden"></Settings>

        This functionality is described in the ASPxRichEditBehaviorSettings Members help topic and demonstrated in the Document and Operation Restrictions demo.  Disabling and hiding ASPxRichEdit ribbon commands using a particular RibbonItem.ClientEnabled or Visible property is not supported.

          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.