Another Salesforce blog!!!

Salesforce, Apex

Check-All checkbox using GridView (

<asp:CheckBox ID="chkRejectAll" CssClass="selectreject" runat="server" onclick="javascript:SelectAllRejectCheckboxes(this, '.selectreject');" />

//select reject all checkbox
    function SelectAllRejectCheckboxes(chk, selector) {

        $('#<%=gv.ClientID%>').find(selector + " input:checkbox").not('checked').each(function () {
            $(this).prop("checked", $(chk).prop("checked"));




One thought on “Check-All checkbox using GridView (

  • Fatemeh says:

    Hi,In Edit template i have 2 texeboxts. TextBox1 I am using to edit text and Textbox2 in which I am keeping max length allowed.On key up I am validating the max length in Textbox1. using javascrip function.For some reason the javascript function is working only for 1st row. For rest of the rows javascript function is called but validation of max length doesnt work.Please let me know some solution if possible which I am editing and on textchange

Leave a Reply

Your email address will not be published. Required fields are marked *