How do I divide a tabstrip into 2 tabstrip components using a kendo splitter ?

Thread is closed for posting
5 posts, 0 answers
  1. 8CEBB740-8139-43EF-8428-CC9ADE2AC130
    8CEBB740-8139-43EF-8428-CC9ADE2AC130 avatar
    4 posts
    Member since:
    Oct 2017

    Posted 02 Nov 2017 Link to this post

    Hi, 

    I'm trying to add some custom functionality to the awesome tabstrip component. 

    More exactly, when the user rightclicks a tab button, the tabstrip should be divided by a splitter in 2 sides (left and right) When the user rightclicks again a tab button, the 2 sides should merge back under a single tabstrip.  

    This is what I have so far: 

    http://dojo.telerik.com/ERuLAb/2

    This seems to work fine in one scenario:

    If I right click Tab5, then click Tab6, Tab7, Tab8 everything is perfect. 

    But if I right click Tab5, then click Tab1, the right side looses its active tab content. 

    So it seems that the left tabstrip is somehow referencing  the right tabstrip children unless those children were already activated (or rendered) 

    So the main problem  I'm facing is the ability to remove a tab content item (without destroying it) and add it to another tabstrip. In theory it should work but the kendo tabstrip internal structure si pretty complex. 

  2. 8CEBB740-8139-43EF-8428-CC9ADE2AC130
    8CEBB740-8139-43EF-8428-CC9ADE2AC130 avatar
    4 posts
    Member since:
    Oct 2017

    Posted 02 Nov 2017 Link to this post

    Hello again, 

    I think I managed to solve it. Here's the latest dojo:

    http://dojo.telerik.com/IGEXIZ

    Could you please tell me if you spot anything wrong with this approach ? 

    Thank you,

    Adrian. 

  3. C7F5C168-5155-4F4B-94A2-59CB0D9CCB8A
    C7F5C168-5155-4F4B-94A2-59CB0D9CCB8A avatar
    815 posts
    Member since:
    Apr 2022

    Posted 03 Nov 2017 Link to this post

    Hello Adrian,

    You did an excellent job achieving the desired result. I have reviewed the implementation and tested the scenario and everything works very well. You have also correctly used the resize() method to re-layout the pane with the new content changes.

    May I ask you if it is OK for us to create a new Knowledge Base article based on this example, so that the rest of the community might also review and benefit from it? 

    I am looking forward to your response.

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  4. 8CEBB740-8139-43EF-8428-CC9ADE2AC130
    8CEBB740-8139-43EF-8428-CC9ADE2AC130 avatar
    4 posts
    Member since:
    Oct 2017

    Posted 03 Nov 2017 Link to this post

    Hi Dimitar, 

    Sure, you can create a KB article based on this example.

    Regards,

    Adrian.

  5. C7F5C168-5155-4F4B-94A2-59CB0D9CCB8A
    C7F5C168-5155-4F4B-94A2-59CB0D9CCB8A avatar
    815 posts
    Member since:
    Apr 2022

    Posted 06 Nov 2017 Link to this post

    Hi Adrian,

    Thank you for helping us expand the Kendo UI Knowledge Base. I will be soon publishing the Dojo in a new article.

    As a small token of gratitude, I have also updated your Telerik points. You can find more information in your Telerik Profile.

    Wish you a great day.

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.