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

Incorrect Rad Page being shown on page load

3 Answers 53 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Mick
Top achievements
Rank 1
Mick asked on 18 Aug 2011, 03:16 PM
Hi
I am using RadControl ajax Q1 2011 net 4

I am having issues trying to get the correct rad page to display on page load.
I have 5 tabs on a strip but when the page loads I want it to load page 2 by default.
Instead when I run the app it displays the correct tab highlighted on the tab strip but the wrong multi page index 0 is being shown when I have explicitly told both TabStrip and multi page that the selected index should be 1. I have also told it the same information in the page_load event.

If I set the selected indexes to 0 then it works as it should do.

I have tried all variations of setting selecting SelectedIndex in the tab strip, multi page and the page views and it just wont work.

As a temporary fix I have done the following.

OnPage load start a timer,
when the timer fires a call an ajax callback to set the selected index server side
ajax returns and the correct tab is shown.

I have a similar issue on another page where I have 2 tab strips on the same page but both these should be displaying index position 0.
The first tab is fine and draws the correct radpage but the second tab does not draw a page at all until I click a different tab and then click back?

Any help on this greatly appreciated.


3 Answers, 1 is accepted

Sort by
0
Rory
Top achievements
Rank 1
answered on 19 Aug 2011, 07:00 PM
Have you tried setting the selectedindex in different events of the page? For instance if set the 2 selectedindexes in PrerenderComplete I get an error but it works fine in LoadedComplete.
0
Mick
Top achievements
Rank 1
answered on 22 Aug 2011, 01:52 PM
Thanks for your reply Rory
Good call to do it at the final stage just before rendering just to be sure.

I hooked up both events like you, it did not crash for me in either event but unfortunately it did not work either,
It can now only be the client side drawing of the control that is influencing which rad multi page is drawn.

I have however got it to work if I set the RenderSelectedpageOnly flag, but I don't want to render each page on demand as this will compromise the user experience.

Perseverance is the key or so they say,
0
Dimitar Terziev
Telerik team
answered on 25 Aug 2011, 08:35 AM
Hello Mick,

In order to troubleshoot your issue, please open a support ticket and provide us with a runnable sample project with the issue being reproduced so we could examine it locally and find a solution for it.

Best wishes,
Dimitar Terziev
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
TabStrip
Asked by
Mick
Top achievements
Rank 1
Answers by
Rory
Top achievements
Rank 1
Mick
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or