Announcement

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

    Grid's rule context doesn't update after filtering

    SmartClient Version: v13.1p_2024-11-20/AllModules Development Only (built 2024-11-20)

    Chrome on MacOS

    Hello, please try the following test case using the fetchOperationFS sample:

    Code:
    isc.ListGrid.create({
        ID:"dsListGrid",
        top: 40,
        width: "100%",
        height: "100%",
        autoFetchData: true,
        dataSource: "supplyItem"
    });
    
    isc.IButton.create({
        ID: "foo",
        title: "test",
        enableWhen: {
            fieldName: "dsListGrid.anySelected",
            operator: "equals",
            value: true
        }
    })
    Steps to reproduce:
    - Select a record in the grid. You’ll see that the button becomes enabled, as expected.
    - Filter the grid so that the selected record is no longer visible.

    The button remains enabled even though no records are selected in the grid anymore. It seems that the rule context attributes related to grid selection are not updated after filtering.

    #2
    Claudio, this issue has been fixed and is available immediately in the current build.

    Comment


      #3
      SmartClient Version: v13.1p_2024-12-02/Enterprise Deployment (built 2024-12-02)

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

      Comment

      Working...
      X