0

I need to make row editable instead of each field/column. I am also following the tutorial for tutorial for row edit feature

Please find the plnkr link also where I am trying to make row editable instead of each column. I have the button on each row but it doesn't have any functioning.

plnkr link

  $scope.gridOptions.columnDefs = [
    { name: 'id'},
    { name: 'age'  },
    {name: " Edit" , cellTemplate:'<button class=\"btn btn-xs btn-primary\" ng-click=\"grid.appScope.openModal(grid, row)\"> <i class="fa fa-edit" ></i></button>' }];
1
  • I need to edit full row. I tried to implement by reading the tutorial for ag-grid but were unsuccessful. Commented Nov 28, 2017 at 18:51

1 Answer 1

0

You can use the 'cellEditableCondition' option on each field and then put one variable to change the status of the fields.

  $scope.gridOptions.columnDefs = [
{ name: 'id'},
{ name: 'age', edicellEditableCondition : variable (true or false) }...]

And then you can change all rows only with one. Hope it helps.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.