-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No access to rowCount #232
Comments
Yes i would like to know also if there is a property that we could use to easily get the rowCount without doing any "fetches" from the store. It seems at first sight that there isn't any. |
Currently there's no direct property or event exposing this, but you can be informed of the total results any time the grid receives a new result set by aspecting onto aspect.after(grid, 'renderArray', function(results) {
// do something with results.total here
}, true); I'm open to suggestions as to whether this ought to be exposed as a property, or a custom event... exposing it as a property on the grid feels kind of odd, and it may actually be more useful to expose it as an event so that you can react to any time it changes. At the same time, the aspecting above isn't all that different but I'll admit it isn't the most obvious thing in the world. |
In dgrid 0.4, total will be retrievable via |
Resolved in 0.4 via b39ff7a. |
I've been looking around the code for a rowCount or similar instance variable that indicates how many total results exist. With the DataGrid, I believe this was grabbed from a total, totalCount, or numRows parameter on the first results response object.
The text was updated successfully, but these errors were encountered: