Announcement

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

    problem with autofit of a grid field of type datetime

    SmartClient Version: v11.1p_2017-09-14/AllModules Development Only (built 2017-09-14)

    Chrome on OSX

    Hello, please try the #dataSourceFields sample, after changing the independence field type to 'datetime' (instead of date).

    Then try to autoFit the field from the header context menu. You'll see the result in the screenshot. It seems that it's autofitting like it was a 'date' field.

    Click image for larger version

Name:	2017-09-15 14.48.50.jpg
Views:	132
Size:	4.4 KB
ID:	249189

    #2
    This is the result of few different issues with how "date"-based fields (including "datetitem") are handled during autofitting. We'll update this thread when a change is made.

    Comment


      #3
      Note that ListGridFields of type Date, DateTime, or Time, don't ever autofit to the actual cell content, but can fit the title, provided ListGrid.autoFitDateFields is set appropriately. For these field types, the field is assigned a constant field width when autofitting is active that should accommodate the content when the default format is used, and you were correct that that width was too narrow for DateTime-typed fields.

      This should be fixed in today's nightly builds (2017-09-26) back to SC 11.1p. We've also added some cross links in the documentation to avoid future confusion.

      Comment


        #4
        SmartClient Version: v11.1p_2017-09-29/Enterprise Development Only (built 2017-09-29)

        I can confirm it's working, thank you very much.

        Comment

        Working...
        X