Demo with jqGrid & AngularJS

Viewed 1988

i just create a jqGrid within a controller.i want add some buttons in each row with some event within controller. before in jquery:

 option.gridComplete=function () {
        var ids = jQuery("#list").jqGrid('getDataIDs');
        for (var i = 0; i < ids.length; i++) {
            var cl = ids[i];
            var edit = '<input type="button" onclick="edit()">';
            jQuery("#list").jqGrid('setRowData', ids[i], {
                act: edit
            });
        }
    }

someone pelase tell me how to bind ng-click in the edit button like this
var edit = '<input type="button" ng-click="edit()">';

1 Answers
Related