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

Selected Tab lost when in PageView set not to render

4 Answers 231 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
LeBear
Top achievements
Rank 1
LeBear asked on 19 Apr 2008, 04:59 PM
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.

<telerik:RadTabStrip AutoPostBack="true" ID="MainTab" runat="server" MultiPageID="MP1" SelectedIndex="0"
 
    <Tabs> 
     
        <telerik:RadTab runat="server" Text="Tab 1" /> 
        <telerik:RadTab runat="server" Text="Tab 2" /> 
        <telerik:RadTab runat="server" Text="Tab 3" /> 
        <telerik:RadTab runat="server" Text="Tab 4" /> 
        <telerik:RadTab runat="server" Text="Tab 5" /> 
     
    </Tabs> 
 
</telerik:RadTabStrip>  
 
<telerik:RadMultiPage ID="MP1" RenderSelectedPageOnly="true" runat="server" SelectedIndex="0"
 
    <telerik:RadPageView ID="PV1" runat="server"
        <h1>Page View 1</h1> 
        <telerik:RadTabStrip ID="SubTab" MultiPageID="MP2" runat="server" AutoPostBack="true" SelectedIndex="0" EnableViewState="true"
            <Tabs> 
                <telerik:RadTab runat="server" Text="SubTab 1" PageViewID="SubView1" /> 
                <telerik:RadTab runat="server" Text="SubTab 2" PageViewID="SubView2" /> 
                <telerik:RadTab runat="server" Text="SubTab 3" PageViewID="SubView3" /> 
                <telerik:RadTab runat="server" Text="SubTab 4" PageViewID="SubView4" /> 
                <telerik:RadTab runat="server" Text="SubTab 5" PageViewID="SubView5" /> 
            </Tabs> 
        </telerik:RadTabStrip> 
        <telerik:RadMultiPage ID="MP2" runat="server" SelectedIndex="0" RenderSelectedPageOnly="false"
            <telerik:RadPageView ID="SubView1" runat="server"
                <h2>SubView 1</h2> 
            </telerik:RadPageView> 
            <telerik:RadPageView ID="SubView2" runat="server"
                <h2>SubView 2</h2> 
            </telerik:RadPageView> 
            <telerik:RadPageView ID="SubView3" runat="server"
                <h2>SubView 3</h2> 
            </telerik:RadPageView> 
            <telerik:RadPageView ID="SubView4" runat="server"
                <h2>SubView 4</h2> 
            </telerik:RadPageView> 
            <telerik:RadPageView ID="SubView5" runat="server"
                <h2>SubView 5</h2> 
            </telerik:RadPageView> 
        </telerik:RadMultiPage> 
    </telerik:RadPageView> 
 
    <telerik:RadPageView ID="PV2" runat="server"
        <h1>Page View 2</h1> 
    </telerik:RadPageView> 
 
    <telerik:RadPageView ID="PV3" runat="server"
        <h1>Page View 3</h1> 
    </telerik:RadPageView> 
 
    <telerik:RadPageView ID="PV4" runat="server"
        <h1>Page View 4</h1> 
    </telerik:RadPageView> 
 
    <telerik:RadPageView ID="PV5" runat="server"
        <h1>Page View 5</h1> 
    </telerik:RadPageView> 
 
</telerik:RadMultiPage> 
 


4 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 21 Apr 2008, 02:33 PM
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
0
LeBear
Top achievements
Rank 1
answered on 22 Apr 2008, 12:51 PM
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!
0
archimede
Top achievements
Rank 1
answered on 07 Sep 2011, 10:41 AM
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 !!!
0
Dimitar Terziev
Telerik team
answered on 12 Sep 2011, 12:42 PM
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
Tags
TabStrip
Asked by
LeBear
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
LeBear
Top achievements
Rank 1
archimede
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or