Duplicated
Last Updated: 11 May 2022 19:04 by ADMIN
Kelly
Created on: 21 Apr 2022 23:40
Category: TabStrip
Type: Bug Report
2
After setting TabStripTab Visible from false to true the ActiveTabIndex does not set focus to the tab

ActiveTabIndex works as expected when tabs are always Visible, but when you set the Visible property to false, then back to true, the ActiveTabIndex does not work.

<TelerikTabStrip @bind-ActiveTabIndex="@ActiveTabIndex" PersistTabContent="true">

    <TabStripTab Title="Tab 0 Always Visible">

    <TabStripTab Title="@TabTitle" Visible="@IsTabVisible" >

..

IsTabVisible = true;

ActiveTabIndex = 1;

 

I encountered this behavior in both v2.30.0 and v3.2.0

Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
3 comments
ADMIN
Marin Bratanov
Posted on: 11 May 2022 19:04

Hello Kelly,

Please post here a simple repl example that shows the issue so we can take a look.

Regards,
Marin Bratanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Kelly
Posted on: 11 May 2022 18:24

Hi Marin,

I've tested v3.3.0, and our issue is still a bug.  Our issue is different and not a duplicate.

We are using a public bool variable with the initial value false.

If you make a tab invisible, then set it to visible, and then you try set the ActiveTabIndex to the tab you just made visible ... the focus does not change to the "visible tab".

In case it's relevant, my first tab contains a TelerikTreeList which has a TreeListCommandButton in the TreeListToolBar.  The OnClick calls a method that sets the "IsTabVisible = true" and attempts to set the ActiveTabIndex.  Focus to the tab only works correctly when the tab is visible to begin with.

Help!

Kelly Dahmer.

ADMIN
Marin Bratanov
Posted on: 23 Apr 2022 19:09

Hello Kelly,

Thank you for reaching out. We just fixed such an issue in 3.3.0: https://feedback.telerik.com/blazor/1558344-wrong-tab-is-focused-if-there-is-an-invisible-tab

So, I will mark this one as duplicate. If upgrading does not help or the issue seems different, let us know.

Regards,
Marin Bratanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.