dataTable scrollHeight

UI Components for Angular
Post Reply
microdeveloper
Posts: 82
Joined: 21 Mar 2016, 19:42

28 Mar 2016, 07:11

Is there any way to adjust datatable scrollHeight according to the parent component height without spacing the specif value.

cagatay.civici
Prime
Posts: 18478
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

28 Mar 2016, 16:37

Yes, scrollHeight can be a percentage like 50%, that means maximum 50% of its container.

microdeveloper
Posts: 82
Joined: 21 Mar 2016, 19:42

28 Mar 2016, 19:49

Well when i assign scrollHeight in percentage i am facing this error

Cannot read property 'outerHeight' of undefined
at $.widget.adjustScrollHeight

cagatay.civici
Prime
Posts: 18478
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

29 Mar 2016, 09:18

Can you please post your datatable so we can try to replicate.

microdeveloper
Posts: 82
Joined: 21 Mar 2016, 19:42

29 Mar 2016, 09:39

<p-dataTable selectionMode="single" [value]="_EMCode" scrollable="true" scrollHeight="50%" >
<p-column style="width:85;text-align:center" field="CodeID" header="Code"></p-column>
<p-column field="Description" header="Description"></p-column>


</p-dataTable>

cagatay.civici
Prime
Posts: 18478
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

29 Mar 2016, 09:41

@trypticon, please take over.

User avatar
DarthMaul
Posts: 583
Joined: 23 Nov 2015, 21:20

29 Mar 2016, 11:06

it is now fixed for our next release you can review it from here: https://github.com/primefaces/primeui/c ... a8287dd96f

microdeveloper
Posts: 82
Joined: 21 Mar 2016, 19:42

29 Mar 2016, 15:27

OK Thank you so much.

cagatay.civici
Prime
Posts: 18478
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

29 Mar 2016, 19:20

Will be released in next PrimeUI release.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests