Incorrect Rad Page being shown on page load

4 posts, 0 answers
  1. Mick
    Mick avatar
    40 posts
    Member since:
    Oct 2006

    Posted 18 Aug 2011 Link to this post

    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.

  2. Rory
    Rory avatar
    159 posts
    Member since:
    Jul 2007

    Posted 19 Aug 2011 Link to this post

    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.
  3. Mick
    Mick avatar
    40 posts
    Member since:
    Oct 2006

    Posted 22 Aug 2011 Link to this post

    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,
  4. Dimitar Terziev
    Dimitar Terziev avatar
    1268 posts

    Posted 25 Aug 2011 Link to this post

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

Back to Top