This is a migrated thread and some comments may be shown as answers.

TabStrip (2nd level) not being shown/selected after clicking on it

5 Answers 26 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 08 Dec 2015, 05:55 PM

I did a tabstrip that has a second level for each tab in first level. When I clicked on one of these tabs in 2nd level, the tabstrip resets back to first level "Home" tab (that has "selected" by default) and second level of tabstrip disappears.

 

I want to click on one of these tabs in second level, and shows its corresponding tab parent (in 1st level) being selected as well as itself. How can I achieve this behavior? 

 

 

Thanks

5 Answers, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 10 Dec 2015, 08:50 AM
Hello Christian,

I have implemented a sample RadTabStrip web-site testing your scenario. However, I wasn't able to reproduce the issue. Attached you will find my .aspx page. Could you modify it so it reproduces the described behavior and post your modifications for further review?

Looking forward to your reply.

Regards,
Veselin Tsvetanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Christian
Top achievements
Rank 1
answered on 10 Dec 2015, 06:03 PM
I am using NavigateURL to assign where to go. after clicking a tab. But doing so, it resets tabstrip back to the first tab in 1st level (I called "Home").
0
Christian
Top achievements
Rank 1
answered on 10 Dec 2015, 07:11 PM
I saw your Tabstrip and it works well. My issue with my tabstrip is that I am using NavigateURL because every tab sends you to a different page externally. I use CSS to configure 1st level tabs to be highlighted when clicked and it shows their 2nd level tabs normally. When I click on one of these 2nd level tabs, 2nd level does not remain in and resets back to first tab in 1st level. 

I tried to use RadMultiPage and didn't work.
0
Veselin Tsvetanov
Telerik team
answered on 11 Dec 2015, 11:04 AM
Hi Christian,

If you navigate using the NavigateURL property of the RadTab, you actually redirect user to that specific page. Using the NavigateURL prevents the client and the server events (except for the OnClientTabSelecting client event). In this way, what happens is that you do not select that specific tab, but just click the link specified. If you then perform page reload in some manner, you will be forced to the default state of the control. You can consult this KB Article, which explains how to persist the selected state using the client-side API.

The above directions are just general principles. It will be easier to test your specific scenario, if you give is the exact markup of your page.

Regards,
Veselin Tsvetanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Christian
Top achievements
Rank 1
answered on 14 Dec 2015, 12:09 AM

Hi Veselin,

I used the OnClientTabSelecting client event and it worked. 

Thanks for the article. It helped me to understand how RadTabstrip works. 

Tags
TabStrip
Asked by
Christian
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Christian
Top achievements
Rank 1
Share this question
or