Is there any way on the client-side to set the Total Rows in a ListGrid? We are currently loading all of our initial data server-side and passing this data set directly to the ListGrid using ListGrid.data . Unfortunately, we cannot set the total rows on the grid, or in the response object, and pagination does not work.
Is there any way to manually set the total number of rows on a ListGrid in the client side code? I know there is a getTotalRows() but I currently don't see a way to setTotalRows. If this isn't possible we would like to know if there is some way of forcing pagination without the ListGrid knowing what the true total row count is, i.e. when a user scrolls to the bottom of the rendered data set in the ListGrid.
As a side note, once our initial data is loaded we use fetchData when a user clicks anywhere else on the tree to pull back the records and because we then have a ResultSet generated by fetchData(), the total number of rows is set and reflected in pagination and the scroll bar icon size.
Also, because we aren't using fetchData for the initial load we don't have an entry in the RPC logs in the developer console so I was not able to use that method to troubleshoot this specific case.
v9.1p_2014-08-24/Pro Deployment
Chrome 37
Is there any way to manually set the total number of rows on a ListGrid in the client side code? I know there is a getTotalRows() but I currently don't see a way to setTotalRows. If this isn't possible we would like to know if there is some way of forcing pagination without the ListGrid knowing what the true total row count is, i.e. when a user scrolls to the bottom of the rendered data set in the ListGrid.
As a side note, once our initial data is loaded we use fetchData when a user clicks anywhere else on the tree to pull back the records and because we then have a ResultSet generated by fetchData(), the total number of rows is set and reflected in pagination and the scroll bar icon size.
Also, because we aren't using fetchData for the initial load we don't have an entry in the RPC logs in the developer console so I was not able to use that method to troubleshoot this specific case.
v9.1p_2014-08-24/Pro Deployment
Chrome 37
Comment