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
105
Client Side Paging of Web Grid
posted

I apologize for posting this here. This should have been under ASP.NET forum. I have posted this under ASP.Net/WebDataGrid forum. Please ignore it here (I couldn't find option to delete this post from here)

 

I have written a javascript function which calculates the hours from rows in a web grid depending on the check box checked in the grid. This worked perfectly until I added a pager, which causes there to be less rows on the page than the page size states.If the Pager is set to 20 rows per page and if there are total 100 rows in the grid; its getting only 20 rows. Is there anyway of accessing all rows in a grid (client-side) when a pager is in place ? Any suggestions will be appreciated, thank you!

 

function Grid_AfterBeforeCellUpdateHandler(gridName, cellId)

{

        oGridName = gridName;

        var total = 0;

        var grid = igtbl_getGridById(oGridName);

        var rid = 0;

        var row = grid.Rows.getRow(rid++);

       //loop thru' each  row

        while(row)

      {

          var selectedcell = row.getCellFromKey('ShiftHour');

            var hours = selectedcell.getValue();

         total += parseFloat(hours);

     }

             row = grid.Rows.getRow(rid++);

       }

 

 

Parents
No Data
Reply Children
No Data