Closed JaneSjs closed 8 months ago
The issue: if you add columns via a property grid, the options.columns
array contains a newly added column object. However, if you add a column via the design surface, the options.columns
array doesn't contain a newly added column.
https://plnkr.co/edit/R5cMOt2bhpjwghMg
the options.columns array doesn't contain a newly added column.
This is expected behaviour. See https://github.com/surveyjs/survey-creator/blob/master/packages/survey-creator-core/src/creator-events-api.ts#L293-L296
T17025 - MatrixColumnAdded event not working if we try to create new column from survey design surface using enter key https://surveyjs.answerdesk.io/internal/ticket/details/T17025
View Demo
The
creator.onMatrixColumnAdded
event is correctly raised if you add columns via a property grid's column editor. However, this event is not invoked if you add columns by pressing Enter in a design surface.