ContentUrls array not updated after removing a tab

4 posts, 0 answers
  1. Henry
    Henry avatar
    16 posts
    Member since:
    Feb 2014

    Posted 18 Aug Link to this post

    I have a tabstrip with multiple tabs, and each tab has its own contentUrl, so data is fetched using ajax.

    I noticed that if you delete a tab, and reload the selected tab, it uses the old url from the removed tab. The tabstrip's contentUrls array still has the old values, that probably causes this.

    Steps to reproduce:

    1) Create a tabstrip with two tabs, with contentUrl set for both separately

    2) Select the second tab

    3) Remove the first tab (remove())

    4) Reload the selected tab (select() and reload())

    I suppose I need to manually update the contentUrls array?

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1268 posts

    Posted 22 Aug Link to this post

    Hello Henry,

    I tried to reproduce the behavior in question, but to no avail. Here's a dojo example which follows the described scenario. The "Engine" tab is reloaded successfully after removing the first tab and continues to display the correct content. Could you modify the dojo example accordingly so that the issue is reproduced and link it back for further review?

    Regards,
    Ivan Danchev
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Henry
    Henry avatar
    16 posts
    Member since:
    Feb 2014

    Posted 07 Sep in reply to Ivan Danchev Link to this post

    Hi Ivan,

    thanks for testing this. It turned out, that with our Kendo version (2016.3.1118) tabstrip.options.contentUrls didn't update when removing tabs. Please see slightly modified dojo that uses that version, and outputs the tabstrip to console: dojo

    The solution for me was to get the tab's contentUrl from the link element instead. In my app, I need to modify the url before reloading the tab.

  4. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1268 posts

    Posted 11 Sep Link to this post

    Hi Henry,

    Thank you for the follow up, I am glad you found a solution. Indeed the TabStrip in version 2016.3.1118 keeps the contentUrls of removed tabs.

    Regards,
    Ivan Danchev
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 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