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

RadButton's OnClick event not fired when inside MasterPage

4 Answers 263 Views
Button
This is a migrated thread and some comments may be shown as answers.
Antoine
Top achievements
Rank 1
Antoine asked on 19 Oct 2013, 08:56 PM
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!

4 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 21 Oct 2013, 03:12 PM
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.
0
Gaurab
Top achievements
Rank 1
answered on 21 Oct 2013, 03:35 PM
Does the page post back when you click on the button?
0
Antoine
Top achievements
Rank 1
answered on 21 Oct 2013, 03:47 PM
Yes, it does :)

@Danail: Thanks, I will check into that later tonight and and give more details if my problem persists!
0
Antoine
Top achievements
Rank 1
answered on 22 Oct 2013, 02:04 AM
Tags
Button
Asked by
Antoine
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Gaurab
Top achievements
Rank 1
Antoine
Top achievements
Rank 1
Share this question
or