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

User control in multipage breaks tab strip

4 Answers 110 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 03 Mar 2009, 09:24 PM
I am trying to add a user control to the pages of my tab strip:

<telerik:RadTabStrip ID="RadTabStrip2" runat="server" Skin="Gray" MultiPageID="RadMultiPage1" Width="100%" SelectedIndex="0"
        <Tabs> 
            <telerik:RadTab Text="Document Triggers" Selected="True" PageViewID="pageDocument" runat="server" /> 
            <telerik:RadTab Text="Forum Triggers" PageViewID="pageForum" runat="server" /> 
            <telerik:RadTab Text="Calendar Triggers" PageViewID="pageCalendar" runat="server" /> 
        </Tabs> 
    </telerik:RadTabStrip> 
    <div class="SimpleTabPage"
        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"
            <telerik:RadPageView ID="pageDocument" runat="server" Selected="true"
            Hi 
            </telerik:RadPageView> 
            <telerik:RadPageView ID="pageForum" runat="server"
            Hello 
                <uc1:ForumTriggers ID="ForumTriggers1" runat="server" />                 
            </telerik:RadPageView> 
            <telerik:RadPageView ID="pageCalendar" runat="server"
            Bye 
            </telerik:RadPageView> 
        </telerik:RadMultiPage> 
    </div> 

When I add my "ForumTriggers" user control to the second page view, the tab strip stops working.  I'm not trying to dynamically load the user controls or use AJAX.  If I view the source, all of the markup in the user control appears in the page view.  There are no javascript errors.  How can I fix this problem?





4 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 04 Mar 2009, 07:52 AM
Hi Matt,

Obviously, there's something in the particular UserControl that causes the problem. However, I think It will be best if you can open a support ticket and send us a simple running project (incl. CSS, images, DB backup if needed and so on) demonstrating the problem. In that way we can reproduce and pinpoint the problem you're facing on our side and provide a solution.

Kind regards,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Matthew
Top achievements
Rank 1
answered on 04 Mar 2009, 03:14 PM
I think I've found the problem.  My user control has a RequiredFieldValidator in it:

<asp:RequiredFieldValidator ID="reqTriggerName" runat="server" ControlToValidate="txtTriggerName" Display="Dynamic"
                                ErrorMessage="*Required" />

When I take this out, the tabs work fine.  Why would a required field validator cause the tabs to stop working and how can I get around it?




0
Atanas Korchev
Telerik team
answered on 04 Mar 2009, 03:20 PM
Hi Matt,

Try setting the CausesValidation property of RadTabStrip to false.

Kind regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Matthew
Top achievements
Rank 1
answered on 04 Mar 2009, 03:33 PM
Great!  That worked.

Thanks,
Matt
Tags
TabStrip
Asked by
Matthew
Top achievements
Rank 1
Answers by
Paul
Telerik team
Matthew
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or