No dedicated event is raised when a user adds an Item in Multiple items and a column in matrices

This issue has been tracked since 2023-01-27.

Updated

New events are added:

  /**
   * An event that is raised on adding a new column in Matrix Dynamic or Matrix Dropdown question.
   * - `sender`: `SurveyModel` - A survey instance that raised the event.
   * - `options.question` - a matrix question.
   * - `options.column` - a new added column.
   */
  public onMatrixColumnAdded: EventBase<SurveyModel> = this.addEvent<SurveyModel>();
  /**
   * An event that is raised on adding a new item in Multiple Text question.
   * - `sender`: `SurveyModel` - A survey instance that raised the event.
   * - `options.question` - a multiple text question.
   * - `options.item` - a new added item.
   */
  public onMultipleTextItemAdded: EventBase<SurveyModel> = this.addEvent<SurveyModel>();

When a user adds another choice item, or matrix row, the creator.onItemValueAdded event is raised. However, no dedicated event is raised when a user adds a Multiple Text question item.

Original issue: T11859 - RadioGroup, checkbox,matrix row columns.

Currently, it is possible to handle a new Multiple Text question item adding as follows:

creator.onPropertyGridSurveyCreated.add((sender, options) => {
    options.survey.onMatrixRowAdded.add((sender, options) => {
      options.question.setRowValue(options.row.index, {
        name: `name${options.row.index}`
      });
    });
});
More Details About Repo
Owner Name surveyjs
Repo Name survey-creator
Full Name surveyjs/survey-creator
Language TypeScript
Created Date 2015-12-22
Updated Date 2023-03-30
Star Count 683
Watcher Count 29
Fork Count 308
Issue Count 301

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date