How to get the WebGrid's Total Row Count?

8 replies. Last post: November 30, 2010 10:02 AM by Shawn August
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Shawn AugustMember

var grid = ISGetObject("WebGrid1");

window.alert(grid.TotalLoadedRows); // Doesn't change after record has been added at client side.

window.alert(grid.TotalRows);// Doesn't change after record has been added at client

window.alert(grid.RootTable.GetRowsCount());// Doesn't change after record has been added at client side

window.alert(grid.RootTable.Rows); // Is null.

window.alert(grid.RootTable.Rows.length); // Throws error.

 

How do I get the TOTAL number of rows in the grid?

 

All times are GMT -5. The time now is 11:33 PM.
Previous Next