Question T12591
Visible to All Users

Dynamic Matrix doesn't display the Add Row button when it is being used as a Property Grid editor

created 2 years ago (modified 2 years ago)

[Ticket cloned from T12563: How to add a custom layout for question properties in Survey JS]

Thanks Jane.

Regarding "Add Row" button will it take more time since it seems that it is not currently available feature in survey js.

Actually this custom dynamic matrix property feature we need on some urgent basis, so is there any way I can tweak the code and dynamically add a row to dynamic matrix? Just want to know the possibilities.

Thanks,
Santosh

Show previous comments (12)

    Hi Andrew,

    We have to handle one more scenario over here,

    Clipboard-File-1.png

    As shown in the diagram the optionsID list will also be dynamic based on the value we select in the master dropdown I have shown in the image. That's the reason I wanted to club these two controls together (Right now we have Master Dropdown implemented in General Tab).

    Thanks,
    Santosh

      Yes, it is fine. I can do it. What the master dropdown does? Does it filter questions?
      I can show create a master dropdown that will have 4 options in my examples: "Show all questions", "Checkboxes", "Raiogroups" and "Dropdowns".

      Thank you,
      Andrew
      SurveyJS Team

        Hi Andrew,

        It is kind of option category options. Based on the category we select in Master Dropdown, dropdown options of the columns which we have in matrix gets changed. So it is kind of category decider for matrix column options.

        Thanks,
        Santosh

        Answers approved by surveyjs Support

        created 2 years ago

        Hello Santosh,
        Please review the following example.
        Unfortunately, I did not get what master dropdown should do, so I make it as a filter. You can change it to any other code you need. I believe you will get the main idea.
        optionID is belongs to a question instance, you should not worry about adding/deleting questions or changing their names.
        You have UI where a user can modify all options IDs in one place, like we do in Logic or Translation tabs.

        Thank you,
        Andrew
        SurveyJS Team