This is a migrated thread and some comments may be shown as answers.

No Tab is selected after ContextualGroup IsActive is set to false

5 Answers 95 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Ivo
Top achievements
Rank 1
Ivo asked on 13 Sep 2019, 12:26 PM

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

Sort by
0
Martin Ivanov
Telerik team
answered on 17 Sep 2019, 09:55 AM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Ivo
Top achievements
Rank 1
answered on 17 Sep 2019, 03:02 PM

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?

0
Martin Ivanov
Telerik team
answered on 18 Sep 2019, 08:16 AM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Ivo
Top achievements
Rank 1
answered on 18 Sep 2019, 09:50 AM

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.

0
Accepted
Martin Ivanov
Telerik team
answered on 18 Sep 2019, 10:13 AM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
RibbonView and RibbonWindow
Asked by
Ivo
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Ivo
Top achievements
Rank 1
Share this question
or