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

isColumnVisible and isRowVisible don't appear to work #138

Closed
rdavi10471a2 opened this issue Jul 16, 2018 · 2 comments
Closed

isColumnVisible and isRowVisible don't appear to work #138

rdavi10471a2 opened this issue Jul 16, 2018 · 2 comments
Assignees
Labels

Comments

@rdavi10471a2
Copy link

Expected behavior and actual behavior.

console.log(grid.isColumnVisible(1)) should return whether or not the column is visible
trying to use this in the scroll event to tell what cols are actually in the viewport.
how can this be done

Steps to reproduce the problem.

call this funciton
console.log(grid.isColumnVisible(1))

Specifications like the version of the project, operating system, or hardware.

@TonyGermaneri
Copy link
Owner

Thanks for finding that bug. It appears the functions are not exposed to the public interface. It's easy to fix, I'll add it to the next release.

In the mean time...

This example shows the use of scrollIndexRect.

https://tonygermaneri.github.io/canvas-datagrid/tutorials/xhrPagingDemo.html

https://github.com/TonyGermaneri/canvas-datagrid/blob/master/tutorials/xhrPagingDemo.js#L116

I think this should provide the information you're looking for.

@rdavi10471a2
Copy link
Author

rdavi10471a2 commented Jul 16, 2018 via email

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

No branches or pull requests

2 participants