-
-
Notifications
You must be signed in to change notification settings - Fork 202
feat(grid): Support runtime column dataField changes #9151
Copy link
Copy link
Closed
Labels
coreCore framework functionalityCore framework functionalitydocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request
Description
Enable Neo.grid.column.Base to handle dynamic changes to its dataField config at runtime.
Goals
- Make
dataFieldreactive (dataField_). - Implement
afterSetDataFieldto automatically update:- The
Grid.Bodycolumn positions map (handling the re-keying logic). - The corresponding
HeaderButton(to preserve sorting/filtering bindings).
- The
Implementation Details
The afterSetDataField method must perform a "remove -> mutate -> add" sequence on the body.columnPositions Collection. This is critical because the Collection uses dataField as its keyProperty. Modifying the field in-place without removing it first would leave the internal Map index pointing to the old key, breaking column lookups in Row.mjs.
This enhancement removes the need for manual synchronization logic in application code (e.g. DevIndex).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
coreCore framework functionalityCore framework functionalitydocumentationImprovements or additions to documentationImprovements or additions to documentationenhancementNew feature or requestNew feature or request