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.
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:
<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.
Hello Slaven,
Thank you for your feedback. I will update these threads.