Announcement

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

    ListGrid.autoFitFieldWidths problem with datetime fields in Shiva skin

    SmartClient Version: SNAPSHOT_v13.1d_2024-07-10/AllModules Development Only (built 2024-07-10)

    Hello, please try this test case:

    Code:
    isc.DataSource.create({
        ID: "presetDateRangeDS",
        clientOnly: true,
        fields: [
            { name: "customerID" },
            { name: "customerName" },
            { name: "orderID", width:80 },
            { name: "orderDate", type: "datetime", width:100 },
            { name: "orderDescription" },
            { name: "orderQty" }
        ],
        testData: presetDateRangeData
    });
    
    isc.ListGrid.create({
        ID: "grid1",
        width: 750,
        height: 150,
        autoFitFieldWidths:true,
        dataSource: presetDateRangeDS,
        autoFetchData: true,
        useAllDataSourceFields: true,
        showFilterEditor: true,
        canGroupBy: true,
        fields: [
            { name: "orderDate", filterEditorType: "RecentDateRangeItem" }
        ]
    });
    
    isc.VLayout.create({
        width: "100%",
        height: "100%",
        membersMargin: 10,
        members: [
            grid1
        ]
    })
    you'll see that the autoFit doesn't calculate the right width for the datetime field:

    Click image for larger version

Name:	2024-07-11 16.16.05.jpg
Views:	57
Size:	19.1 KB
ID:	272880

    this happens only with Shiva skin.

    #2
    Thanks Claudio - apologies for the delay on this one - we'll get to it shortly

    Comment


      #3
      hi Claudio - we've fixed this one. The fix may not hit today's builds but will be in tomorrow's, dated July 15, and later ones.

      Comment


        #4
        SmartClient Version: SNAPSHOT_v13.1d_2024-07-15/AllModules Development Only (built 2024-07-15)

        I see it's fixed, thank you very much

        Comment

        Working...
        X