RadTabStrip and RadMultiPage problem

4 posts, 0 answers
  1. Ivo
    Ivo avatar
    8 posts
    Member since:
    Nov 2012

    Posted 11 Jun 2013 Link to this post

    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,

  2. Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 14 Jun 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ivo
    Ivo avatar
    8 posts
    Member since:
    Nov 2012

    Posted 17 Jun 2013 Link to this post

    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,

  5. Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 20 Jun 2013 Link to this post

    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.
Back to Top