dataTable scrollHeight
-
- Posts: 82
- Joined: 21 Mar 2016, 19:42
Is there any way to adjust datatable scrollHeight according to the parent component height without spacing the specif value.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Yes, scrollHeight can be a percentage like 50%, that means maximum 50% of its container.
-
- Posts: 82
- Joined: 21 Mar 2016, 19:42
Well when i assign scrollHeight in percentage i am facing this error
Cannot read property 'outerHeight' of undefined
at $.widget.adjustScrollHeight
Cannot read property 'outerHeight' of undefined
at $.widget.adjustScrollHeight
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Can you please post your datatable so we can try to replicate.
-
- Posts: 82
- Joined: 21 Mar 2016, 19:42
<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>
<p-column style="width:85;text-align:center" field="CodeID" header="Code"></p-column>
<p-column field="Description" header="Description"></p-column>
</p-dataTable>
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
@trypticon, please take over.
it is now fixed for our next release you can review it from here: https://github.com/primefaces/primeui/c ... a8287dd96f
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Will be released in next PrimeUI release.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 32 guests