No Tab is selected after ContextualGroup IsActive is set to false

6 posts, 1 answers
  1. Ivo
    Ivo avatar
    10 posts
    Member since:
    Dec 2018

    Posted 13 Sep Link to this post

    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

     

     

  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2191 posts

    Posted 17 Sep Link to this post

    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.
  3. Ivo
    Ivo avatar
    10 posts
    Member since:
    Dec 2018

    Posted 17 Sep Link to this post

    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?

  4. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2191 posts

    Posted 18 Sep Link to this post

    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.
  5. Ivo
    Ivo avatar
    10 posts
    Member since:
    Dec 2018

    Posted 18 Sep Link to this post

    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.

  6. Answer
    Martin Ivanov
    Admin
    Martin Ivanov avatar
    2191 posts

    Posted 18 Sep Link to this post

    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.
Back to Top