Skip to content
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

RowDetailView handling filter row counts #254

Closed
SatanEnglish opened this issue Jun 20, 2018 · 2 comments
Closed

RowDetailView handling filter row counts #254

SatanEnglish opened this issue Jun 20, 2018 · 2 comments

Comments

@SatanEnglish
Copy link
Contributor

@6pac @ghiscoding

New issue working around at the moment.

Need to get the length of the showed rows.
Trying to do this without changing underlining core stuff again...

Inside of slick.dataview.js I can see that the getLength method returns the rows.length.
These are only the visable rows.

I'm wanting to get to that rows object but it turns out it's not the same one that is exposed.

e.g.
_dataView().rows gives me all the rows even the hidden ones;

Is there a way to get to these objects?

@SatanEnglish
Copy link
Contributor Author

        onRowCountChanged = function () {
            var rows = 0;
            for (var i = 0, l = grid().getDataLength(); i < l; i++) {
                // Check for expanded row data
                if (!grid().getDataItem(i)._parent) { rows++; }
            }
            window.setRowCount(rows);
        };

This works for now but it's a little nasty

@ghiscoding
Copy link
Collaborator

So unless I am mistaking, we already have the getExpandedRows() method that returns the expanded rows. If that is not what you were looking for then please provide more details but for now I'll go ahead and close the issue.

Note that a lot changed since this issue was opened, our whole code structure changed (we removed jQuery/jQueryUI and we migrated to TypeScript).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants