Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    automatically vertically expanding a ListGrid up to a maximum height.

    I am trying to get a ListGrid to expand its height to hold the number of records it contains up to a maximum height. Up to that maximum height there would be no scroll bars and no additional empty records. Once the height would go beyond the maximum height scroll bars would be added so the user can browse all of the data in the ListGrid.

    So far I haven’t been to find the right combination of settings to achieve this. I have tried many combinations too numerous to recount.

    #2
    Originally posted by dbscott525 View Post
    I am trying to get a ListGrid to expand its height to hold the number of records it contains up to a maximum height. Up to that maximum height there would be no scroll bars and no additional empty records. Once the height would go beyond the maximum height scroll bars would be added so the user can browse all of the data in the ListGrid.

    So far I haven’t been to find the right combination of settings to achieve this. I have tried many combinations too numerous to recount.
    After more searching and experimentation I found this to work:

    Code:
    setAutoFitMaxHeight(400);
    setAutoFitData(Autofit.VERTICAL);

    Comment


      #3
      setAutoFitMaxRecords() is probably what you want, if you want to size to records.

      Comment

      Working...
      X