Skip to content

columnType: 'select' source cannot be updated dynamically #795

@TaronMinasyan

Description

@TaronMinasyan

Package versions:

"@revolist/vue3-datagrid": "^4.17.0", "@revolist/revogrid": "^4.17.0", "@revolist/revogrid-column-select": "^3.1.9",

Description:

When using columnType: "select", the source array (options) cannot be updated dynamically after grid initialization.

I need to update the source of one column based on the value of another column in the same row.

Even when I modify the column’s source field inside beforeedit or cellProperties, the dropdown editor still shows the old list of options.

Expected behavior:

When the column source is updated before editing, the dropdown should reflect the new list of options.

Actual behavior:

Even though the column object’s source is updated in code (confirmed by console logging),
the select editor still shows the old options.
It seems RevoGrid doesn’t re-render or re-bind the source property once the grid is mounted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions