You must Sign In to post a response.
  • Category: ASP.NET

    Mr.Kulanthaivelu.........

    I want Java Script
    r you know
    pls help.
    adv thank to u
  • #215602
    here with i have attached the code. If you slightly change the code then it will work.
    function SelectAll(SelBtn)
    {
    var gvET = document.getElementById("GVEditTrans");
    var rCount = gvET.rows.length;
    var btnSel = SelBtn.value;
    var rowIdx;
    // check the Page Count is greater than 1 then rowindex will start from 2 else 1
    if(document.getElementById("hidgridpagecount").value>1)
    {
    rowIdx=2;
    }
    else
    {
    rowIdx=1;
    }
    for (rowIdx; rowIdx<=rCount-1; rowIdx++)
    {
    var rowElement = gvET.rows[rowIdx];
    var chkBox = rowElement.cells[0].firstChild;
    if (btnSel == 'Select All')
    {
    chkBox.checked = true;
    }
    else
    {
    chkBox.checked = false;
    }
    PopRowsVal(chkBox);
    }
    if (btnSel == 'Select All')
    {
    document.getElementById('btnSelAll_Top').value ="Deselect All";
    document.getElementById('btnSelAll_Bot').value ="Deselect All";
    }
    else
    {
    document.getElementById('btnSelAll_Top').value ="Select All";
    document.getElementById('btnSelAll_Bot').value ="Select All";
    }
    //alert(document.getElementById('hidRowsVal').value);
    return false;
    }

  • #215607
    i dont no change.
    r u change to my grid id - pls.

  • #215612
    Hey what is your problem. Without knowing javascript. You can not change this code. If any of your office friends knows javascript ask them to change the code. If you could not find anybody then prepare detailed document which should clearly descript your requirement with your full page html cpde and code behind. I will help it out.


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.