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

User control checkbox not firing

1 Answer 150 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Madhan asked on 31 Oct 2012, 07:58 PM

A linkButton onClientClick starts a new page and loads user control. In the user control I have radgrid and button those I have placed in ajaxpanel.

<asp:UpdatePanel runat="server" ID="ajaxPanel">
        <telerik:RadGrid ID="RadGrid1" Width="97%"            PageSize="15" runat="server" AllowSorting="True" AllowFilteringByColumn="True"
             GridLines="None" CellSpacing="0"
             <MasterTableView Width="100%" AutoGenerateColumns="False" DataKeyNames="GrowerId">
                      <telerik:GridTemplateColumn UniqueName="TemplateColumn" SortExpression="CompanyName">
                                         <asp:CheckBox id="headerChkbox"  OnCheckedChanged="chkHeader_CheckedChanged"  AutoPostBack="true" runat="server" Text="Select All" ></asp:CheckBox>
                                <asp:checkbox ID="chkGrowerId" runat="server" />
                      <telerik:GridBoundColumn DataField="FirstName" HeaderText="FirstName"
                          SortExpression="FirstName" UniqueName="FirstName">
                      <telerik:GridBoundColumn DataField="LastName" HeaderText="LastName"
                          SortExpression="LastName" UniqueName="LastName">
                      <telerik:GridBoundColumn DataField="AddressLine" HeaderText="AddressLine"
                          SortExpression="AddressLine" UniqueName="AddressLine">
                      <telerik:GridBoundColumn DataField="City" HeaderText="City"
                          SortExpression="City" UniqueName="City">
                      <telerik:GridBoundColumn DataField="StateCode" HeaderText="StateCode"
                          SortExpression="StateCode" UniqueName="StateCode">
                      <telerik:GridBoundColumn DataField="ZipCode" HeaderText="ZipCode"
                          SortExpression="ZipCode" UniqueName="ZipCode">
              <PagerStyle Mode="NextPrevAndNumeric" />
                <FilterMenu EnableTheming="True">
                    <CollapseAnimation Duration="200" Type="OutQuint" />
            <asp:Button ID="btnCreateCsv" runat="server" Text ="Create Mailing List" OnClick="btnCreate_Click" />




User control loaded without any problem. But when I clicked the checkbox or button the checkedchanged/click event is not firing. Help pleaseā€¦.







































1 Answer, 1 is accepted

Sort by
Maria Ilieva
Telerik team
answered on 05 Nov 2012, 10:20 AM
Hello Madhan,

Could you please ensure that you are loading the UserControl correctly as shown in the online demo below:
Also please inspect the server request and verify if any js errors appear when trying to fire the check changed or button click events.

Maria Ilieva
the Telerik team
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 their blog feed now.
Asked by
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question