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

User control checkbox not firing

1 Answer 141 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Madhan
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">
    <ContentTemplate>
 
     
 
 
        <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">
 
                  <Columns>
                      <telerik:GridTemplateColumn UniqueName="TemplateColumn" SortExpression="CompanyName">
                      <HeaderTemplate>
 
                                         <asp:CheckBox id="headerChkbox"  OnCheckedChanged="chkHeader_CheckedChanged"  AutoPostBack="true" runat="server" Text="Select All" ></asp:CheckBox>
 
                                        </HeaderTemplate>
                        <ItemTemplate>
                             
                                <asp:checkbox ID="chkGrowerId" runat="server" />
                             
                        </ItemTemplate>
                        </telerik:GridTemplateColumn>
                      
                      <telerik:GridBoundColumn DataField="FirstName" HeaderText="FirstName"
                          SortExpression="FirstName" UniqueName="FirstName">
                      </telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="LastName" HeaderText="LastName"
                          SortExpression="LastName" UniqueName="LastName">
                      </telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="AddressLine" HeaderText="AddressLine"
                          SortExpression="AddressLine" UniqueName="AddressLine">
                      </telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="City" HeaderText="City"
                          SortExpression="City" UniqueName="City">
                      </telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="StateCode" HeaderText="StateCode"
                          SortExpression="StateCode" UniqueName="StateCode">
                      </telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="ZipCode" HeaderText="ZipCode"
                          SortExpression="ZipCode" UniqueName="ZipCode">
                      </telerik:GridBoundColumn>
                       
                  </Columns>
                </MasterTableView>
              <PagerStyle Mode="NextPrevAndNumeric" />
                <FilterMenu EnableTheming="True">
                    <CollapseAnimation Duration="200" Type="OutQuint" />
                </FilterMenu>
            </telerik:RadGrid>
            <asp:Button ID="btnCreateCsv" runat="server" Text ="Create Mailing List" OnClick="btnCreate_Click" />
    </ContentTemplate>
      
    </asp:UpdatePanel>

 

 

 

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

</asp:UpdatePanel>

1 Answer, 1 is accepted

Sort by
0
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:
http://demos.telerik.com/aspnet-ajax/ajax/examples/common/loadingusercontrols/defaultcs.aspx
Also please inspect the server request and verify if any js errors appear when trying to fire the check changed or button click events.

Regards,
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.
Tags
Grid
Asked by
Madhan
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or