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
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.
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.
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.