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

Server-side Tab Switching when using renderselectedpageonly="true"

5 Answers 169 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Crafty
Top achievements
Rank 1
Crafty asked on 01 Oct 2008, 01:18 PM
Hi,

I'm attempting to switch the RadTab and RadMultiPage when my ASP.NET page loads using something like this:

tabStrip.SelectedIndex = (int)Session["SelectedTabIndex"];  
multPage.FindPageViewByID(tabStrip.SelectedTab.PageViewID).Selected = true

However, as my Page only Renders the selected Tab the RadPageView doesn't actually exist and the FindPageViewByID returns null.

Is there a way to select a different Page View and keep the renderselectedpageonly="true" property?

Thanks

Dave

5 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 06 Oct 2008, 11:45 AM
Hello Crafty,

You can try setting the SelectedIndex property of the multipage as well, i.e.

radtabstrip1.SelectedIndex = (int)Session["SelectedTabIndex"];  
RadMultiPage1.SelectedIndex = radtabstrip1.SelectedTab.Index; 

If this is not the case, I suggest you open a support ticket and send a simple running project that shows the issue.

All the best,
Paul
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Crafty
Top achievements
Rank 1
answered on 06 Oct 2008, 01:43 PM
Hi,

I originally tried setting the index, however it didn't make any difference. I'll Create a test project working which shows the issue and get back to you.

Thanks
Dave
0
caglar_ozkul
Top achievements
Rank 1
answered on 28 Oct 2008, 02:22 PM
Hi,
I have same problem. Is it solved? if it is, can you send me a working project

Kind Regards,
Caglar Ozkul
0
Crafty
Top achievements
Rank 1
answered on 28 Oct 2008, 03:00 PM
Hey,

Here's the working example project.. I hope it helps you.

[links to controls' assemblies are not allowed in the Forums]

Tar

0
Martin
Top achievements
Rank 1
answered on 24 Nov 2008, 08:04 PM
Can someone cut&paste the relevant code? I'd like to get the same functionality working on my project too!
Tags
TabStrip
Asked by
Crafty
Top achievements
Rank 1
Answers by
Paul
Telerik team
Crafty
Top achievements
Rank 1
caglar_ozkul
Top achievements
Rank 1
Martin
Top achievements
Rank 1
Share this question
or