When the editor becomes active, the contextualgroup IsActive is set to true and RibbonTab appear visible. When user selects it, it looks like in "before" picture. Everything ok. But when in this time the editor is closed, IsActive is set to false, but no other RibbonTab is automatically selected and in appears like in "after" picture. In the samples, i have not seen any special source code to select to another RibbonTab in this case. What is necessary to do in this case and how to define RibbonTab to be selected when ContextualGroup.IsActive is set to false?
Thanks, Ivo Kovacka
5 Answers, 1 is accepted
Hello Ivo,
I've tested this scenario on my side, but couldn't reproduce the issue. Can you please check the attached project and let me know if I am missing anything?
Regards,
Martin Ivanov
Progress Telerik
Hi, I found out what is the problem, I derived a class from RadRibbonContextualGroup and adding instance of that item to ContextualGroups fail somewhere from unknown reason and that was in try/catch so the tab was visible but not shown as contextual
Why I cannot derive from that class?
Hello Ivo,
I tested this on my side, but there is no issue with custom contextual groups. Can you see the attached project and tell me if I have to change something in order to reproduce the issue?
If your case is more complex, you can try isolating it in a runnable project and open a new support ticket from your telerik.com account where you can share it.
Regards,
Martin Ivanov
Progress Telerik
Thanks for answer, I have in the meanwhile rebuilt the source code and it is working now, but what is not working now is, that in the case that IsActive is set to true, the Tab from contextual group becomes selected what i dont want, I just want to add new Tabs that are appearing differently(what is working now correctly). Setting for IsActive to false works well.
So once more, the only thing which is remaining is somehow to tell, that IsActive set to true means just to add contextual group but not select it.
Hello Ivo,
You can prevent selecting the first tab of the activated contextual group by setting its SelectFirstTabOnActivation property to False.
<telerik:RadRibbonContextualGroup SelectFirstTabOnActivation="False" />
Regards,
Martin Ivanov
Progress Telerik