primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Datatable: scrolling+frozen+resizeColumns ->console error/distorted view

Open reinpeter opened this issue 9 years ago • 3 comments

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

[x ] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports) Reproducable plunker http://plnkr.co/edit/K4YRzcuBisF2fS9ssZbv?p=preview

Current behavior enabling Scrolling, frozen column, resizeable columns shows console error in plunker and distorted view when resizeing and in other implemenations shows nothing at all with console error.

app.template.html:1 ERROR TypeError: Cannot read property 'style' of undefined at DataTable.fixColumnWidths (VM3374 datatable.js:1631) at DataTable.initResizableColumns (VM3374 datatable.js:1523) at DataTable.ngAfterViewChecked (VM3374 datatable.js:512) at callProviderLifecycles (VM3231 core.umd.js:11215) at callElementProvidersLifecycles (VM3231 core.umd.js:11187) at callLifecycleHooksChildrenFirst (VM3231 core.umd.js:11171) at checkAndUpdateView (VM3231 core.umd.js:12276) at callViewAction (VM3231 core.umd.js:12633) at execComponentViewsAction (VM3231 core.umd.js:12565) at checkAndUpdateView (VM3231 core.umd.js:12274) at callWithDebugContext (VM3231 core.umd.js:13488) at Object.debugCheckAndUpdateView [as checkAndUpdateView] (VM3231 core.umd.js:13028) at ViewRef_.detectChanges (VM3231 core.umd.js:10199) at eval (VM3231 core.umd.js:4837) at Array.forEach ()

Expected behavior All functionalities working without error

Minimal reproduction of the problem with instructions See browser log after displaying and resize some columns

  • PrimeNG version: 4.2.2

reinpeter avatar Oct 19 '17 15:10 reinpeter

Hi all,

Related to https://github.com/primefaces/primeng/issues/4028

LeLuyen avatar Oct 20 '17 02:10 LeLuyen

I have the same error, when scrollable and resizable use together.<p-dataTable [value]="juZhen" resizableColumns="true" scrollable="true" scrollHeight="100px">

candy4290 avatar Oct 20 '17 06:10 candy4290

p-dataTable is deprecated and will be removed in favor of the new p-table (aka TurboTable) of 5.1.0 so closing the issue. Please try the new p-table once 5.1.0 is released.

cagataycivici avatar Jan 13 '18 22:01 cagataycivici