swimlane / ngx-datatable

✨ A feature-rich yet lightweight data-table crafted for Angular
http://swimlane.github.io/ngx-datatable/
MIT License
4.63k stars 1.68k forks source link

No data to display when [rowHeight]="'auto'" and [scrollbarV]="true" #1294

Open mssravan56 opened 6 years ago

mssravan56 commented 6 years ago

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior With [rowHeight]="'auto'" [scrollbarV]="true", the table displays "No data to display"

Expected behavior It should display the table with the data with fluid row height and vertical scroll.

Reproduction of the problem Reproducible 100% of the times.

Please tell us about your environment: Mac, Atom, Angular 5

MuMuthukumar commented 6 years ago

From my experience, you can't use [rowHeight]="'auto'" when you have [scrollbarV]="true", you should give some number for rowheight.

CaffGeek commented 6 years ago

Even a number is breaking it for me.

bleuscyther commented 6 years ago

based on here https://github.com/swimlane/ngx-datatable/issues/1292 . i used overflow-y:visible for the rowDetail and its now working

siba1985 commented 3 years ago

hi bleuscyther overflow-y:visible is ok but my case, [rowHeight]="'auto'" i am using every row inside column contains more means word-wrap.

[scrollbarV]="true" i am using header fixed and pagination show in top so overflow-y:visible is not required, below is my ngx-datatable example, Dear bleuscyther can you tell me in this case how to use [rowHeight]="'auto'" [scrollbarV]="true"

<ngx-datatable class="material striped" style="height: 340px; " [rows]="myData" [columnMode]="'force'" [headerHeight]="50" [scrollbarH]="true" [footerHeight]="50" [rowHeight]="40" [scrollbarV]="true" [sorts]="[{prop: 'name', dir: 'desc'}]">

AliZain036 commented 2 years ago

hi bleuscyther overflow-y:visible is ok but my case, [rowHeight]="'auto'" i am using every row inside column contains more means word-wrap.

[scrollbarV]="true" i am using header fixed and pagination show in top so overflow-y:visible is not required, below is my ngx-datatable example, Dear bleuscyther can you tell me in this case how to use [rowHeight]="'auto'" [scrollbarV]="true"

<ngx-datatable class="material striped" style="height: 340px; " [rows]="myData" [columnMode]="'force'" [headerHeight]="50" [scrollbarH]="true" [footerHeight]="50" [rowHeight]="40" [scrollbarV]="true" [sorts]="[{prop: 'name', dir: 'desc'}]">

This worked for me. Thank You.

shivajivh commented 11 months ago

Any update or work around to this issue? combination of rowHeight auto and scrollbarV true still does not work when we have row detail. I do not need virtual scroll capability, if that is causing the issue, can we disable it and have the scroll?