Originally Posted 14 June 2014, 5:34 am ESTHi all,
I'm trying to remove some groups and buttons from the Wijmo C1Editor 4.0.20141.166. c# vs 2013.
If I include the following in the PageLoad event
c1Editor.RibbonUI.TabPages.Groups.Buttons.RemoveAt(2); // preview button
c1Editor.RibbonUI.TabPages.Groups.Buttons.RemoveAt(4); // template button
c1Editor.RibbonUI.TabPages.Groups.Buttons.RemoveAt(1); // Inspect button
c1Editor.RibbonUI.TabPages.Groups.RemoveAt(3); // Special group
c1Editor.RibbonUI.TabPages.Groups.RemoveAt(2); // forms group
If works first time the page is displayed, however if I refresh the page the items return. The code runs whenever the page is loaded.
I noticed that each time the page is loaded before the above code the count of items returns to the original, after the code above on the first load the count is reduced by the number of items I've removed and the control looks fine without the items. After the page refresh, the count has again returned to the original before the above code and after the code the count is reduced but the items are back on the ribbon.
Is there something I'm doing wrong here.
is there a better way (read working way) to customise the ribbon.
Alternatively is there a way to add a save button to the simple toolbar.