Announcement

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

    Changed listgrid edit-behaviour in 12.1 vs 11.1

    Hi there,
    We recently found a change in the behavior of an editable listgrid between Smartcleitnt 11.1 (in detail v11.1p_2021-02-19/Pro Deployment) and Smartclient 12.1 (in detail v12.1p_2021-06-25/Pro Deployment).
    When editing a row in a listgrid in 11.1 the behavior was that the selected state of the rows was maintained. In Smartclient 12.1 this state gets discarded when opening the editor.
    This is the behaviour in Smartclient 11.1

    THis is the behaviour in Smartclient 12.1


    Code for reproducing:
    Code:
    isc.ListGrid.create({
    "ID": "grid",
    "height": "200",
    "width": "400",
    "hideUsingDisplayNone": false,
    "leaveScrollbarGap": true,
    "selectionType": "simple",
    "canEdit": true,
    "autoSaveEdits": false,
    "autoFitWidthApproach": "both",
    "selectionProperty": "isSelected",
    "selectionAppearance": "checkbox",
    "canGroupBy": false,
    "fields": [{
    "name": "nameField",
    "title": "Name",
    "type": "text",
    "width": "*",
    "canEdit": false
    }, {
    "name": "shortNameField",
    "title": "ID",
    "type": "text",
    "width": 150,
    "canEdit": true,
    }
    ],
    "members": [],
    "data": [{
    "isSelected": true,
    "nameField": "Dog",
    "shortNameField": "5"
    }, {
    "isSelected": true,
    "nameField": "Cat",
    "shortNameField": "8"
    }, {
    "isSelected": true,
    "nameField": "Mouse",
    "shortNameField": "333"
    }
    ]
    })
    Thanks in advance
    Simon

    #2
    See listGrid.selectOnEdit and listGrid.editSelectionStyle if you would like to restore the old behavior of retaining a multiple selection (it was reported as a bug, and we agreed).

    Comment

    Working...
    X