Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
300
Checkbox click and row commit
posted

I have a checkbox column to select multiple row. All of the other fields are read only. The issue is I don't want the edit row to show. I have to enable it in order to get the checkbox to work but when I select the checkbox the entire row goes into edit mode. Is there a way to bypass this feature? Or have it auto close after the checkbox is checked?

Parents
  • 1015
    Suggested Answer
    posted

    Try changing the editMode to "cell" under the Updating feature.

    Then change the other cells to read only.

    Example below:

    features: [

            {
                name: "Updating",
                editMode: "cell",
                columnSettings: [
                    {
                        columnKey : "Name",
                        readOnly: true
                    },
                    {
                        columnKey : "whatever",
                        readOnly: true
                    }
                ]
            }
        ]
     
    Or you might be able to enable the RowSelectors Feature and the Selection feature with no updating feature required.  Let the RowSelctors checkbox provide the checkbox for your selections.

    { name:"RowSelectors", enableCheckBoxes: true, enableRowNumbering: false, requireSelection: false},

    { name:'Selection', mode: 'row', multipleSelection: true, activation: true }

     
Reply Children