Skip to content

DataGrid2 SELECTION binding may not persist; document pluggable vs built-in widget support scope #628

@ako

Description

@ako

Problem

SELECTION binding on DATAGRID2 (pluggable widget) may not persist after mxcli exec. GALLERY (built-in widget) works as a workaround, but this difference is undocumented — users don't know the supported scope for pluggable vs built-in widgets.

Current behavior

The MDL SELECTION syntax and code path are the same for both (mdl/grammar/domains/MDLPage.g4:334; mdl/executor/widget_engine.go:432-433SetSelection at mdl/backend/mpr/widget_builder.go:111-127). But DataGrid2 is pluggable (.def.json), so its itemSelection property nesting/PropertyKey may differ from Gallery's template, and SetSelection may miss the target and fail silently. There is no DataGrid2 selection-binding test.

Request

  1. Documentation: clearly specify MDL support scope for pluggable widgets (DataGrid2) vs built-in widgets (Gallery), including the SELECTION-binding workaround.
  2. (Stretch) Make DataGrid2 SELECTION binding persist, with a regression test.

Touch points

  • Verify the DataGrid2 .def.json Selection property path; align SetSelection (mdl/backend/mpr/widget_builder.go) if it differs.
  • Add a test alongside mdl/executor/roundtrip_mxcheck_datagrid_test.go.
  • Document scope (skill / docs-site).

Source: customer feedback batch (2026-06). Reporter: Miwa. Reporter severity: 5/5.
Filed after codebase investigation at 297e0b0a.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions