You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to make table height Auto-Adjustable depending on the Number of rows?

edited Jul 25, 2022 4:59AM in Visual Builder

Summary:

I have a oj-table component whose data is loaded on a REST call. I want the table to automatically adjust its height based on the Number of Rows returned from the rest call.

Content (required):

Our customer requirement is to see a maximum of 10 rows at a given time in the table and the table becomes vertically scrollable.

At First, I set the height of the table to 500px, and the above-mentioned requirement is fulfilled, but my REST Call sometimes gives 3-4 records. At this time the table is taking only limited space of that 500px and the rest area is coming as blank.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!