Setting the width and the hieght of a table

Hi :slight_smile:

I am wondering how can I set the width and the height of a table exactly with its containing data. In fact, when the number of item is as big as possible there is no problem, the height of the table is correct but when it’s about a fiew items for example 4 or 5 items the table has a height lager than the number of the items so ti’s not nice to see this :frowning:

I’ve tried this :


but it does not work :frowning:

So I want to set the height and the width of the table exactly with the height and the width of its containing items :slight_smile:

Any idea???

thanks :slight_smile:

Hi there,

try setPageLength() using length == number of items. That should work.

Thaks :slight_smile:

I’ve tried it and it works :slight_smile:

thanks :slight_smile: