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

how to set grid height dynamically based on row count? #1246

Closed
rajgopalk opened this issue Nov 7, 2016 · 3 comments
Closed

how to set grid height dynamically based on row count? #1246

rajgopalk opened this issue Nov 7, 2016 · 3 comments

Comments

@rajgopalk
Copy link

how to set dynamic Grid height based on row count, if row count is 10, height will set to 10 records, if it's 25 , then 25, if 1000,grid will occupy bottom height of display and scrollbar will shown. is it possible?

@ceolter
Copy link
Contributor

ceolter commented Nov 7, 2016

not possible. only way is for you to set the height yourself based on your own maths after you set the data in.

@ceolter ceolter closed this as completed Nov 7, 2016
@rajgopalk
Copy link
Author

ok, doing math is not a problem.one case it is ok,i.e if we have single line rows, we calculate height based on (row count*actual row height)+(remaining header and pagination footer height).
suppose some rows have multi line text, then it will become more complex i think.again we need to do more coding.can we get height of body without header and footer? if you we have api for getting items(all rows) height, task will become easy.based on that we will assign height to grid dynamically.

@alexjpujol
Copy link

+1 here

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

3 participants