Announcement

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

    TreeGrid has vertical scrollbar when using AutoFitData

    Hi,

    I have two scenarios with TreeGrids where AutoFitData is not giving me the desired results:

    Scenario 1:
    When using AutoFitData with AutoFit.BOTH or AutoFit.VERTICAL, there is a vertical scrollbar when it should just stretch to accommodate all the records?

    Scenario 2:
    When using AutoFitData in conjunction with AutoFitMaxHeight or AutoFitMaxRecords there is a large space below the last record in the tree?

    I am creating a set height canvas (250px), and then placing the TreeGrid with AutoFitData and AutofitMaxHeight to 250px in it; the vertical scrollbar appears as required however there is a large space below the last record.

    in both above scenarios there are approx. 40 records in the grid.

    SmartClient Version: v8.3_2012-11-20/LGPL Development Only (built 2012-11-20)

    Browser: FF 18.0.2

    Regards,
    Kevin Wooding

    #2
    I have found a solution to the problem.

    For scenario 1:
    Setting the setBodyOverflow on the grid to VISIBLE has gotten rid of the vertical scrollbar.

    For scenario 2:
    Setting the setOverflow on the canvas to AUTO and then setting the setBodyOverflow on the grid to VISIBLE.

    Kevin

    Comment

    Working...
    X