Announcement

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

    custom form in gridComponents and filterEditor issue

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

    Safari on iOS on iPhone 8 and iOS simulator on MacOS (doesn't happen on MacOS Safari)

    Hello, please try this test case in the showcase sample fetchOperationFS - run it in the fetch.js tab after a page refresh as I wrote here:
    https://forums.smartclient.com/forum...gridcomponents

    Code:
    isc.ListGrid.create({
        ID: "dsListGrid",
        width: "100%",
        height: "100%",
        autoFetchData: true,
        dataSource: "supplyItem",
        showFilterEditor: true,
        gridComponents: ["autoChild:extraHandsetFilter", "filterEditor", "header", "body"],
        showExtraHandsetFilter: true,
        extraHandsetFilterProperties: {
            _constructor: "DynamicForm",
            width: "100%",
            numCols: 1,
            colWidths: ["*"],
            items: [
                {
                    name: "filterText",
                    type: "text",
                    width: "*",
                    showTitle: false,
                    hint: "search for item name",
                    showHintInField: true,
                    changed(form, item, value) {
    
                    }
                }
            ]
        },
        fields: [
            {
                name: "nextShipment",
                width: "*",
                formatCellValue: function (value, record, rowNum, colNum, grid) {
                    return "<div style='padding-top: 6px; padding-bottom: 6px;'>"
                        + (record.nextShipment ? record.nextShipment.toShortDatetime() : new Date().toShortDatetime())
                        + "<br>" + record.itemName + "</div>";
                }
            }
        ]
    })
    
    isc.Window.create({
        ID: "aWindow",
        title: "test case",
        maximized: true,
        showCloseButton: true,
        autoCenter: true,
        autoSize: true,
        isModal: true,
        showModalMask: true,
        dismissOnOutsideClick: true,
        items: [dsListGrid]
    }).show()
    then put the focus in the "search for item name" textItem, without typing anything, and then tap the filterEditor to open the DateRangeDialog: instead the Window will close.

    It actually seems to happen with every type of filterEditor item, ie also if you use "description" as a field.
    Last edited by claudiobosticco; 21 Aug 2024, 00:42.

    #2
    FYI the use case is that I want to try a UE on handset where a grid has a single field that combines a date and some text fields. Then there's the filterEditor to filter by date range, and an additional text field to filter by the other text fields

    Comment


      #3
      Hi Claudio
      We have a made a change which should resolve this issue. Please try the next nightly build dated Aug 28 or above.
      If you continue to have problems in this area, please let us know

      Regards
      Isomorphic Software

      Comment


        #4
        SmartClient Version: SNAPSHOT_v13.1d_2024-08-28/Enterprise Development Only (built 2024-08-28)

        I can confirm it's fixed, thank you very much

        Comment

        Working...
        X