RadButton's OnClick event not fired when inside MasterPage

5 posts, 0 answers
  1. Antoine
    Antoine avatar
    3 posts
    Member since:
    Apr 2013

    Posted 19 Oct 2013 Link to this post

    Hello,

    I have been stuck on this weird bug where RadButton's OnClick event is not fired when the control is inside my MasterPage.

    This example does not work
    ...   
    <form runat="server">
            <telerik:RadScriptManager runat="server" ID="_scriptManager"/>
            <telerik:RadAjaxManager runat="server" ID="_ajaxManager" RequestQueueSize="100" EnableTheming="true" />
            <telerik:RadFormDecorator runat="server" ID="_formDecorator" Skin="Metro" DecoratedControls="All" EnableAjaxSkinRendering="true" />
            <telerik:RadSkinManager runat="server" ID="_skinManager" Skin="Metro" />
            <div id="wrap">
                <div id="header">
                    <div id="logo">
                        <img src="" width="200px"/>
                    </div>
                    <table id="Table1" style="width:100%" runat="server">
                        <tr>
                            <td style="float:left;">
                            </td>
                            <td style="float:right;">
                                <telerik:RadButton ID="RadButton1" runat="server" Text="text" OnClick="Unnamed_Click" />
                                <%--<userControl:AuthenticationUC runat="server"/>--%>
                            </td>
                        </tr>
                    </table>
                </div>
                <div id="main">
                    <asp:ContentPlaceHolder runat="server" ID="MainContent"></asp:ContentPlaceHolder>
                </div>
            </div>
            <div id="footer">
                <div> © <%: DateTime.Now.Year %> - Antoine Cloutier </div>
            </div>
        </form>
    ...

    But this one does work:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="AntoineCloutierWebApp.WebForm1" %>
     
    <!DOCTYPE html>
     
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <telerik:RadScriptManager runat="server" />
            <telerik:RadButton runat="server" Text="text" OnClick="Unnamed_Click" />
        </div>
        </form>
    </body>
    </html>
    Note: I am using 2013.3.1015.45 RadControls for ASP.NET Ajax.

    Thanks!
  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1492 posts

    Posted 21 Oct 2013 Link to this post

    Hi Antoine,

    I have tried to reproduce the mentioned issue with the RadButton but to no avail. You can watch a short video in the attached archive and then tell me what I am missing with the test.

    Note that in Q3 2013 there is an issue with the clicking of the RadButton when Enter keys is pressed inside password TextBox. The issue has already been logged in our feedback portal here, so that you can monitor, comment, vote on it and find a workaround there.

    If the mentioned issue, however, is different than the above one, could you please try to reproduce it with the attached VS example and then send it back to us, so that we can make an investigation further? Could you also tell us, which are the problematic browsers under which the issue is observed, as well as their versions?

    Regards,
    Danail Vasilev
    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. Jon
    Jon avatar
    35 posts
    Member since:
    Sep 2013

    Posted 21 Oct 2013 Link to this post

    Does the page post back when you click on the button?
  5. Antoine
    Antoine avatar
    3 posts
    Member since:
    Apr 2013

    Posted 21 Oct 2013 Link to this post

    Yes, it does :)

    @Danail: Thanks, I will check into that later tonight and and give more details if my problem persists!
  6. Antoine
    Antoine avatar
    3 posts
    Member since:
    Apr 2013

    Posted 21 Oct 2013 Link to this post

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017