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
90
Button within an editable igGrid causes the edit mode to fire when clicked
posted

I have an igGrid setup like follows:

var buttonTemplate = '<button onclick="doSomething()">My Button</button>';
    $('#myGrid').igGrid({
        columns: [
            { headerText: "Button", key: "Button", template: buttonTemplate }
        ],
        dataSource: myDataSource,
        features: [
            {
                name: "Updating",
                editMode: "row",
                columnSettings: [
                    { columnKey: "Button", editorOptions: { disabled: true } }
                ]
            }
        ]
    });

Basically, I would like to be able to click on the button that is rendered in the grid column 'Button', without triggering this edit row event. Any suggestions as to how I can achieve this?