Announcement

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

    invalid unsaved rows in list grid disappearing when a valid row is edited

    I have a listgrid with a client only data source. I add a row and fill in data.
    then i add rows and leave the rows blank, which causes those rows to be invalid, as there is required data. then i go back to the first row and click to check on the the boolean checkbox fields and the invalid edited rows disappear. Other data that i modify doesn't cause this behavior but the checkbox does. If i click to add a row, the disappeared data comes back again.

    I use the grid.startEditingNew() to start a new row

    ListGrid grid = new MXListGrid();
    grid.setWidth100();
    grid.setHeight100();
    grid.setHeaderHeight(60);
    grid.setAlternateRecordStyles(true);
    grid.setShowFilterEditor(true);
    grid.setFilterOnKeypress(true);
    grid.setModalEditing(true);
    grid.setEditEvent(ListGridEditEvent.CLICK);
    grid.setAutoFetchData(true);
    grid.setEditByCell(true);
    grid.setValidateOnChange(false);

    ListGridField profileId = new ListGridField("attr_profile_id", "Profile id");
    profileId.setType(ListGridFieldType.INTEGER);
    profileId.setCanEdit(false);
    profileId.setCanHide(false);
    profileId.setHidden(true);

    // Grid Columns
    ListGridField currency = new ListGridField ();
    ListGridField benchmark = new ListGridField ();
    ...

    ListGridField noCharge = new ListGridField("chargeOn", "No Charge");
    noCharge .setCellAlign(Alignment.CENTER);
    noCharge .setType(ListGridFieldType.BOOLEAN);

    ListGridField addRow = createAddRow();
    ListGridField removeRow = createRemoveRow();
    Last edited by rs44; 27 Jul 2017, 11:19.

    #2
    This is fixed and available for download in latest nightly builds.

    Comment

    Working...
    X