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

RadTabStrip and RadMultiPage problem

3 Answers 180 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Ivo
Top achievements
Rank 1
Ivo asked on 11 Jun 2013, 06:57 PM
Good Afternoon,

I am currently having an issue with the OnClick Events of a RadTabStrip which is supposed to change the RadPageViews of a RadMultiPage. After placing the following code on a page which inherits no Master Page, with the following definition of a RadScriptManager, everything works fine.

<asp:Content ID="ContentPlaceHolder_RegisterUser" ContentPlaceHolderID="ContentPlaceHolder_MainContent" runat="server">
     
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RegisterUser_RadTabStrip">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RegisterUser_RadTabStrip" />
                    <telerik:AjaxUpdatedControl ControlID="RegisterUser_RadMultiPage" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RegisterUser_RadMultiPage">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RegisterUser_RadTabStrip" />
                    <telerik:AjaxUpdatedControl ControlID="RegisterUser_RadMultiPage" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
 
    <link href="../../Styles/RegisterEmpresa.css" rel="stylesheet" type="text/css" />
 
    <div id="RegisterUser_FormDecoratorZone">
 
        <fieldset>
 
            <legend>
                <asp:Literal ID="RegisterUser_Fieldset_Legend" runat="server" meta:resourcekey="RegisterUser_Fieldset_Legend" />
            </legend>
 
            <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel">
 
                <telerik:RadTabStrip runat="server" ID="RegisterUser_RadTabStrip" SelectedIndex="1" MultiPageID="RegisterUser_RadMultiPage" AutoPostBack="true">
 
                    <Tabs>
 
                        <telerik:RadTab meta:resourcekey="RegisterUser_RadTabStrip_User" PageViewID="RadPageView_User" runat="server">
                        </telerik:RadTab>
 
                        <telerik:RadTab meta:resourcekey="RegisterUser_RadTabStrip_Company"
                            PageViewID="RadPageView_Company" runat="server" Selected="True">
                        </telerik:RadTab>
 
                    </Tabs>
 
                </telerik:RadTabStrip>
 
                <telerik:RadMultiPage id="RegisterUser_RadMultiPage" runat="server" SelectedIndex="1" EnableEmbeddedScripts="true">
                 
                    <telerik:RadPageView ID="RadPageView_User" runat="server" >
                        olaaaaaaaaaaaaa 1
                    </telerik:RadPageView>
 
                    <telerik:RadPageView ID="RadPageView_Company" runat="server">
                        olaaaaaaaaaaaaa 2
                    </telerik:RadPageView>
 
                </telerik:RadMultiPage>
 
            </telerik:RadAjaxPanel>
 
        </fieldset>
 
    </div>
 
    <script type="text/javascript">
 
        ....
 
    </script>
 
</asp:Content>


But after placing the same code inside a Master Page which defines the RadScriptManager, the OnClick Events performed on the RadTabs do not seem to fire.

<form id="form" runat="server">
 
           <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
               <Scripts>
                   <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                   <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                   <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
               </Scripts>
               <Services>
                   <asp:ServiceReference Path="../../WebService/PTC_WebService.svc" />
               </Services>
           </telerik:RadScriptManager>


I would be much appreciated if you could assist me.

Thank you for our attention.

Best Regards,

3 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 14 Jun 2013, 08:43 AM
Hello Jorge,

I was unable to replicate the faced issue, using the provided code snippet and information. Please refer to this video, demonstrating the behavior at my side, when the code is placed in the Master Page. Please correct me if I had missed something. In addition, would you also record a video, demonstrating the problem at your end?

Regards,
Nencho
Telerik
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 the blog feed now.
0
Ivo
Top achievements
Rank 1
answered on 17 Jun 2013, 05:17 PM
Hello Nancho,

The problem was related to a missing CausesValidation="false" tag assertion in the RadTabStrip, which seemed to be blocking the whole tab selection process. Also, after reviewing my question I forgot to mention that when "placing the same code inside a Master Page which defines the RadScriptManager", that code was inside a .aspx page which by turn, inhered the Master Page "which defines the RadScriptManager".

Nonetheless, it seems to be running perfectly now. I will have a closer look into the problem and try to determine why the CausesValidation="false" tag assertion was needed. If you have some ideas on why this happened, could you please post them here?

Thank you very much for your assistance.

Best Regards,

0
Nencho
Telerik team
answered on 20 Jun 2013, 12:28 PM
Hello Jorge,

I am afraid, that I am still unable to replicate the faced issue, when the TabStrip is placed in the Master Page. Without being able to replicate the issue, I could not provide you with an appropriate solution or explanation for the faced problem.  Do you have any CustomValidator on the page? This might prevent the TabStrip to fire the TabClick event if certain validation criteria is not met.

Regards,
Nencho
Telerik
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 the blog feed now.
Tags
TabStrip
Asked by
Ivo
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Ivo
Top achievements
Rank 1
Share this question
or