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

Tabstrip display all pageview on first load !

2 Answers 53 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Pierre-Henri
Top achievements
Rank 1
Pierre-Henri asked on 07 Nov 2012, 05:44 PM

Hi,

I'm using Tabstrig in an user control that is dynamicly loaded in my page
Below is the code of my user control :

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="org_crscls.ascx.cs" Inherits="WBTManager.manageUser.org_crscls" %>
<%@ Reference Page="org.aspx" %>
 
<telerik:RadScriptBlock ID="PageRadScriptBlock" runat="server">
    <script type="text/javascript">
    <!--
        ActiveTab('org_crscls_td', 'OrgMenu_selected', 'OrgMenu', 'td', 'tableOrgMenu');
        var theForm = document.getElementById('wbtform');
        function checkForm(pForm) {
            var bTest = true;
            return bTest;
        }
    //-->  
    </script>
</telerik:RadScriptBlock>
 
<div id="OrgContent" class="OrgContent">
    <telerik:RadTabStrip ID="RadTabHtml" SelectedIndex="0" runat="server" MultiPageID="RadMultiPageCrsCls">
        <Tabs>
            <telerik:RadTab runat="server" Text="Courses" PageViewID="RadPageViewCourses">
            </telerik:RadTab>
            <telerik:RadTab runat="server" Text="Classes" PageViewID="RadPageViewClasses">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="RadMultiPageCrsCls" runat="server" SelectedIndex="0">
        <telerik:RadPageView ID="RadPageViewCourses" runat="server">
            Courses...
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageViewClasses" runat="server">
            Classes...
        </telerik:RadPageView>
    </telerik:RadMultiPage>
</div>
 
<div class="WinButton">
    <div class="WinButtonDetailsAdmin">
        <asp:Button id="BtnCancel" runat="server" Cssclass="button90_second_action" OnClientClick="CloseRadWindow();" />
        <asp:Button id="BtnSubmit" runat="server" Cssclass="button90_main_action" OnClientClick="return(checkForm(theForm));" />
    </div>
</div>

When I first load my control, the first tabstrip element is selected but both pageview appears...
If I then click on the second tab, only the 2nd pageview displays  (that's fine...)
If I go back to the first tab, only the 1st pageview displays  (fine too...)

My problem is at the first load of the control.
My code behind page doesn't contain anything regarding the tabstrip or pageview.

Has someone alreday faced that issue ? nad has a solution ?

Regards.


2 Answers, 1 is accepted

Sort by
0
Pierre-Henri
Top achievements
Rank 1
answered on 08 Nov 2012, 02:53 PM
Hi,

Solved my issue...
I just forgot to include multipage.css !
0
Nencho
Telerik team
answered on 09 Nov 2012, 08:08 AM
Hi Pierre,

I am glad to see, that the issue you had faced, is now resolved.

All the best,
Nencho
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TabStrip
Asked by
Pierre-Henri
Top achievements
Rank 1
Answers by
Pierre-Henri
Top achievements
Rank 1
Nencho
Telerik team
Share this question
or