Hello.
I need to check on each row of the grid if its checkbox is checked or not.
<ItemTemplate>
<asp:CheckBox ID="chkItem" runat="server" AutoPostBack="false" CssClass="checkbox-item" />
</ItemTemplate>
<HeaderTemplate>
<asp:CheckBox ID="chkSelectAll" runat="server" AutoPostBack="false" CssClass="checkbox-item-header" onclick="toggleCheckAll();" />
</HeaderTemplate>
</tel:GridTemplateColumn>
Hi George,
You can check out how to access Controls inside RadGrid and specifically in Template Columns in the following article:
To be able to assist you more accurately I would ask you to share the complete markup declaration of the RadGrid along with all the relevant code-behind logic. That way I will be able to better understand the scenario and advise you accordingly.
Here's an example of how you can access the CheckBox control inside the ItemTemplate of the GridTemplateColumn
You have the OnItemDataBound event handler wired up to the RadGrid. You can do this in the markup.
<telerik:RadGrid ID="RadGrid1" runat="server" OnItemDataBound="RadGrid1_ItemDataBound"> <!-- Your RadGrid configuration --> </telerik:RadGrid>
I hope it helps. For more information see the Doc Official Doc