Completed
Last Updated: 20 Jul 2022 08:18 by ADMIN
Release Release 2.2.0
ward
Created on: 27 Jun 2022 07:12
Category: TabView
Type: Bug Report
0
When setting the second TabItem IsSelected property of Tabview, it does not take effect, and the first TabItem is still selected

  When setting the second TabItem IsSelected property of Tabview, it does not take effect, and the first TabItem is still selected´╝îand the second one alsodisplays the selection style.

  Code


    <telerik:RadTabView x:Name="tabView" AutomationId="tabView">
        <telerik:TabViewItem HeaderText="Home">
            <Label Margin="10" Text="This is the content of the Home tab" />
        </telerik:TabViewItem>
        <telerik:TabViewItem HeaderText="Folder" IsSelected="True">
            <Label Margin="10" Text="This is the content of the Folder tab" />
        </telerik:TabViewItem>
        <telerik:TabViewItem HeaderText="View">
            <Label Margin="10" Text="This is the content of the View tab" />
        </telerik:TabViewItem>
    </telerik:RadTabView>

Please Refer to the attachment for the results.

 

 

 

 

 

Attached Files:
1 comment
ADMIN
Didi
Posted on: 28 Jun 2022 14:03

Hello Ward,

Thank you for this report.

I have reproduced the issue and changed the item status to "Unplanned".

Workaround:

Use TabView SelectedItem or SelectedIndex properties

//SelectedIndex
this.tabView.SelectedIndex = 1;

// SelectedItem
this.tabView.SelectedItem = this.tabView.Items[1];

Regards,
Didi
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.