function SelectAllCheckboxes1(chk)
{
$('#<%=grdOperation.ClientID%>').find("input:checkbox").each(function () {
if (this != chk) {this.checked = chk.checked;}
});
}
<asp:GridView ID="grdOperation" runat="server">
<Columns>
<asp:BoundField DataField="PageOperationName" HeaderText="Permissions" />
<asp:TemplateField ItemStyle-Width="20px">
<HeaderTemplate>
<asp:CheckBox ID="cbSelectAll" runat="server" onclick="javascript:SelectAllCheckboxes1(this);" />
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="chk" runat="server">
</asp:CheckBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
Saturday, 13 April 2013
Checkbox select in gridview using jquery
Labels:
ASP.Net Code
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment