I am using the ASP.NET component RadRibbonBar(latest version - Q3 2011) and I have a question about the usage of the ContextualTabGroup.
How can I activate and deactivate a ContextualTabGroup depending on the options selected in a Tab (RibbonBarButton) ?
Since is not possible to have an ID to the RibbonBarContextualTabGroup, I wonder how I can activate or deactivate the component in the server-side ?
5 Answers, 1 is accepted
You can use the Active property of the RibbonBarContextualTabGroup and set it to false on the server side (see the code below):
the Telerik team
i have another question about this post.
there is way to activate / deactivate the contextual tabs without refresh the whole page, like in AJAX or something ?
You can easily activate or deactivate tabs in a RibbonBarContextualTabGroup through the RibbonBar's client-side API by using their set_enabled(bool) method. Below you can find possible implementation showing how to disable the second Tab of the first TabGroup by handling OnClientClicking event of a RadButton:
If you have any further questions, please do not hesitate to contact us.
I am glad we were able to help.