Hi,
in my RadRibbonBar are 4 RadButtonElements in the QuickAccessToolBar (radRibbonBar.QuickAccessToolBarItems).
Now i want to collapse one or more Buttons at runtime. Therefor i've set the Visibility-Propertie of the RadButtonElement to Collapsed:
radButtonElement.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
Nothing happens.
Than i try to refresh parts of, or the whole, the RibbonBar.
At first i tried it with RadButtonElement.UpdateLayout(). - Same result, nothing happens.
Next i've used the Refresh- and Update-Methode of the RibbonBar - still no results.
And at last i've add a new RadButtonElement to the QuickAccessToolBarItems of RibbonBar in the hope that the RibboBar now refresh itself.
I only want to hide one or more Buttons programmatically.
Can you explain me, how to get it working?
Regards
in my RadRibbonBar are 4 RadButtonElements in the QuickAccessToolBar (radRibbonBar.QuickAccessToolBarItems).
Now i want to collapse one or more Buttons at runtime. Therefor i've set the Visibility-Propertie of the RadButtonElement to Collapsed:
radButtonElement.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
Nothing happens.
Than i try to refresh parts of, or the whole, the RibbonBar.
At first i tried it with RadButtonElement.UpdateLayout(). - Same result, nothing happens.
Next i've used the Refresh- and Update-Methode of the RibbonBar - still no results.
And at last i've add a new RadButtonElement to the QuickAccessToolBarItems of RibbonBar in the hope that the RibboBar now refresh itself.
I only want to hide one or more Buttons programmatically.
Can you explain me, how to get it working?
Regards