Selected Tab lost when in PageView set not to render

5 posts, 1 answers
  1. LeBear
    LeBear avatar
    233 posts
    Member since:
    May 2006

    Posted 19 Apr 2008 Link to this post

    This is a change in behavior from the previous tab strip, and I believe is a bug.

    I have a top-level tab strip (line 1, below) that controls a multi-page (line 15).  The multi-page is set to only render the selected page.  Inside the first page view (line 17), I have another tab strip (line19) and another multi-page (line 28).  Everything is set to selectedindex = 0 so that the first of everything is shown on initial view.

    The page loads.  All is well.  I can click on the second level tab (line 19) and see what I need to see.  Say, for example, that I click on tab 4 (in the lower tab strip - line 24).  I see, as expected, the page view 4 (line 38), which is associated with that tab.  And, the 4th tab is selected.

    If I click on tab 2 on the top (line 6), then back to tab 1 (line 5), I still see page view 4 (line 38) as expected, but none of the second level tabs (lines 21-25) show as selected.

    Only if I set it to render the unselected pages (in the top multi-page, line 15), is the selected tab still selected.

    Thank you for checking this out.  As I said, this is a change in behavior.  I would greatly prefer not to have to render everything as I'm trying to save bandwidth on some pretty complex pages.

    Thank you.

    1 <telerik:RadTabStrip AutoPostBack="true" ID="MainTab" runat="server" MultiPageID="MP1" SelectedIndex="0"
    2  
    3     <Tabs> 
    4      
    5         <telerik:RadTab runat="server" Text="Tab 1" /> 
    6         <telerik:RadTab runat="server" Text="Tab 2" /> 
    7         <telerik:RadTab runat="server" Text="Tab 3" /> 
    8         <telerik:RadTab runat="server" Text="Tab 4" /> 
    9         <telerik:RadTab runat="server" Text="Tab 5" /> 
    10      
    11     </Tabs> 
    12  
    13 </telerik:RadTabStrip>  
    14  
    15 <telerik:RadMultiPage ID="MP1" RenderSelectedPageOnly="true" runat="server" SelectedIndex="0"
    16  
    17     <telerik:RadPageView ID="PV1" runat="server"
    18         <h1>Page View 1</h1> 
    19         <telerik:RadTabStrip ID="SubTab" MultiPageID="MP2" runat="server" AutoPostBack="true" SelectedIndex="0" EnableViewState="true"
    20             <Tabs> 
    21                 <telerik:RadTab runat="server" Text="SubTab 1" PageViewID="SubView1" /> 
    22                 <telerik:RadTab runat="server" Text="SubTab 2" PageViewID="SubView2" /> 
    23                 <telerik:RadTab runat="server" Text="SubTab 3" PageViewID="SubView3" /> 
    24                 <telerik:RadTab runat="server" Text="SubTab 4" PageViewID="SubView4" /> 
    25                 <telerik:RadTab runat="server" Text="SubTab 5" PageViewID="SubView5" /> 
    26             </Tabs> 
    27         </telerik:RadTabStrip> 
    28         <telerik:RadMultiPage ID="MP2" runat="server" SelectedIndex="0" RenderSelectedPageOnly="false"
    29             <telerik:RadPageView ID="SubView1" runat="server"
    30                 <h2>SubView 1</h2> 
    31             </telerik:RadPageView> 
    32             <telerik:RadPageView ID="SubView2" runat="server"
    33                 <h2>SubView 2</h2> 
    34             </telerik:RadPageView> 
    35             <telerik:RadPageView ID="SubView3" runat="server"
    36                 <h2>SubView 3</h2> 
    37             </telerik:RadPageView> 
    38             <telerik:RadPageView ID="SubView4" runat="server"
    39                 <h2>SubView 4</h2> 
    40             </telerik:RadPageView> 
    41             <telerik:RadPageView ID="SubView5" runat="server"
    42                 <h2>SubView 5</h2> 
    43             </telerik:RadPageView> 
    44         </telerik:RadMultiPage> 
    45     </telerik:RadPageView> 
    46  
    47     <telerik:RadPageView ID="PV2" runat="server"
    48         <h1>Page View 2</h1> 
    49     </telerik:RadPageView> 
    50  
    51     <telerik:RadPageView ID="PV3" runat="server"
    52         <h1>Page View 3</h1> 
    53     </telerik:RadPageView> 
    54  
    55     <telerik:RadPageView ID="PV4" runat="server"
    56         <h1>Page View 4</h1> 
    57     </telerik:RadPageView> 
    58  
    59     <telerik:RadPageView ID="PV5" runat="server"
    60         <h1>Page View 5</h1> 
    61     </telerik:RadPageView> 
    62  
    63 </telerik:RadMultiPage> 
    64  


  2. Answer
    Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 21 Apr 2008 Link to this post

    Hello Barry,

    Thank you for your feedback. We managed to reproduce the problem locally and it was fixed by our development team. Please open a support ticket and we will send you the hotfix build.

    Regards,
    Albert
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. LeBear
    LeBear avatar
    233 posts
    Member since:
    May 2006

    Posted 22 Apr 2008 Link to this post

    I have to say that I continue to love Telerik!  Your software and your support go hand-in-hand as top-of-the-line. 

    This problem was quickly identified, corrected, and I got a hotfix all within 24-hours.

    Thank you so much!
  5. archimede
    archimede avatar
    103 posts
    Member since:
    Jul 2006

    Posted 07 Sep 2011 Link to this post

    Hi
    I have a "similar" behavior
    This is my code on a content page:
    <mwc:RadTabStrip ID="rtsPagina" runat="server" EnableEmbeddedSkins="False" SelectedIndex="0"  
           Skin="MachinaWeb" MultiPageID="rmpPagina" EnableAjaxSkinRendering="False" EnableTheming="True"
           Font-Bold="True" Font-Size="14px" AutoPostBack="True"  OnClientTabSelecting="onTabSelecting" OnClientTabSelected="onTabSelected"  >
           <Tabs>
               <mwc:RadTab runat="server" LabelResources="Tabella_sima" PageViewID="rpvTabella" />
               <mwc:RadTab runat="server" LabelResources="Scheda_sima" PageViewID="rpvScheda"  />
               <mwc:RadTab runat="server" LabelResources="Giacenze_plma" PageViewID="rpvGiacenze"  />
               <mwc:RadTab runat="server" LabelResources="Documenti_plma" PageViewID="rpvDocumenti"   />
           </Tabs>
       </mwc:RadTabStrip>
        <mwc:RadMultiPage ID="rmpPagina" runat="server" SelectedIndex="0" ScrollBars="None" RenderSelectedPageOnly="true"  >
                   <mwc:RadPageView ID="rpvTabella" runat="server"   >                    
                       <iframe id="ifTabella"  class="container_iframe"  scrolling="no" frameborder="0" marginheight="0px" marginwidth= "0px"   src="Articoli_Tabella.aspx" ></iframe>                   
                    </mwc:RadPageView
                   <mwc:RadPageView ID="rpvScheda" runat="server">                      
                       <iframe id="ifScheda"  class="container_iframe"  scrolling="no"  frameborder="0" marginheight="0px" marginwidth= "0px"  src="Articoli_Scheda.aspx?IdArticolo=<%= hdfIdSelezionato.Value %>" ></iframe>                
                    </mwc:RadPageView
                   <mwc:RadPageView ID="rpvGiacenze" runat="server" > </mwc:RadPageView
                   <mwc:RadPageView ID="rpvDocumenti" runat="server" > </mwc:RadPageView
       </mwc:RadMultiPage>

    It works perfectly, but when i click on the second  or third ...   tab it render everything ok but remains the first tab as selected.
    How can i resolve this behavior?
    Thank you !!!
  6. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 12 Sep 2011 Link to this post

    Hello Francesco,

    Could you clarify which versions of the controls you are using since this thread is rather old? I've made a sample page based on the mark-up provided and everything was working as expected on my side.

    My suggestion is to use the ContentUrl property of the RadPageView which will render the content of the url in an iframe instead of putting additional one.

    Regards,
    Dimitar Terziev
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017