Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
731
Javascrit Code not working...
posted
please guide why it is not working...??? i am using in

AfterExitEditModeHandler

 

var gd = igtbl_getGridById('<%=UltraWebGrid1.ClientID%>');var rowCount = gd.Rows.length;

alert(rowCount);

var total = 0;

var checked = eval(gd.Rows.getRow(0).getCell(4).getValue());   -> giving error here .......object is null

  • 731
    posted

    i am trying to get sum of column four using this loop it is just giving me the SUM of above rows i want to include the SUM of current row also...

    this loop is being used in after 

    AfterExitEditModeHandler

     of that cell can any one guide what should i do???

    var grid = igtbl_getGridById('<%=UltraWebGrid1.ClientID%>');

    var rowCount = grid.Rows.length;

    for (i = 0; i < rowCount; i++) {

    total = total + grid.Rows.getRow(i).getCell(4).getValue();

    }