Announcement

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

    When using setDrawAheadRatio, the ListGrid Columns are not sized properly

    Hi,

    We are using
    a) SmartClient Version: v11.1p_2017-07-30/Pro Deployment (built 2017-07-30)
    b) Testing using IE 11.48.17134.0


    Problem :
    When using setDrawAheadRatio, the ListGrid Columns are not sized properly. The behaviour that I see is that the column widths are calculated based on the set of records that are viewed in the viewport. If the first set of records have less data, then the next set of records will have an ellipsis if they do not fit in the column width. For example data "Independent..." in the below image in Column with title "Name".


    We need all of the columns to be properly sized. How do we address this?

    In order to reproduce the problem we created a sample that is attached to this post.

    Thanks

    Click image for larger version

Name:	DrawAheadRatio.png
Views:	120
Size:	148.0 KB
ID:	253464
    Attached Files

    #2
    Auto-sizing works by auto-sizing to the records which are initially drawn. There is no way to auto-size to records that are not drawn, or to data that has not been loaded (obviously). So you have a tradeoff of either loading more data up front and drawing more rows up front, and therefore being able to autosize deeper into the dataset, or not doing so, and rendering more quickly with less database load and less data transmitted on the network.

    Basically, we'd recommend leaving the defaults alone, unless you have a very deep understanding of the tradeoffs involved.

    Comment

    Working...
    X