fullRowEdit
Is it possible to switch a whole row into "edit mode" (each cell should show the editableCellTemplate).
I have seen people suggest using cellTemplates with
I would ideally like to use such a feature either in conjunction with ui-grid-row-edit or with explicit "edit", "save", "revert" buttons for/on the individual rows.
I would be very thankfull for any hint on how I could tackle this problem. I've been working with ui-grid for a good while now, but so far I haven't come to realize a good solution for this problem. This is one of the last barriers (apart from a good integration of ui-bootstrap uib-datepicker and uib-timepicker, which I'm working on with some progress) keeping me from using my beloved ui-grid in the project I currently develop.
@molecular I came across the same issue, I ended up with custom implementation (by changing library for some extent). Final output looks like

awesome! looks exactly like what I had in mind.
any chance to get the code?
If there isn't a chance for code, could you give a rough outline on how you implemented your solution?
There was already a similar issue, see #3122
@molecular, To implement this feature, I have
- Injected custom edit control column in column definitions and bound custom events for edit controls
- I have created custom row entity object to carry all required flags such as isEdited, isSaved, isCanceled
- And, injected custom service into "uiGridCell" directive to fill required information like original cell value
- When we click on "Edit" icon I'm enabling all row entity objects with isEdited:true and changing row cellTemplate to editTemplate
Hope this will help you. I will create small POC in plunker and provide to you. Thanks
srikanth can you please provide the UI GridInline Edit JS. The below JS is miss
https://rawgit.com/msrikanth508/uiGridInlineEditPOC/master/Js/vendor/ui-grid.js
This URL is not accessible anymore.
or probably molecular if you have the source code for inline editing of ui grid can you provide me
Please srikanth can you provide the JS as i am using it, let me know is there a way you can share the code
@molecular/ @komalgithub it is up and accessible now. Code is available here: https://github.com/msrikanth508/uiGridInlineEditPOC
NOTE: This is just POC, this will help to draw some idea out of it. In implementation part, we could remove cell watches and achieve same behavior. I had done in my project without using watches, unfortunately I cannot share the file which has recent changes (as shown in above image) because I made couple of other changes in source file to implement other custom features.
Thank you Srikanth for providing the JS, however i see that the Delete button is not working in this code
When clicking on Delete it takes into editable mode with Update, Cancel buttons in the old POC it was working fine.
You can ignore than srikanth, got it to work
@msrikanth508 thank you 1000 for uiGridInlineEditPOC! I will evaluate soon.
@molecular / @komalgithub I’m glad you found it useful.
@msrikanth508 Thank you tons for inline editing in ui grid, its really helpful...
@msrikanth508 : Your version of inline editing doesn't work with grouping. It starts breaknig because grouping inserts a header row and it couldn't find 'IsEdit' property on the header row. I tried to look but doesn't have much idea how to solve it. Can you give some pointers or is it already handled in other version you are using in your project
msrikanth508 : I am using inline editing grid, i have a requirment where i want to hide some text in edit mode like i show some hyperlink on the text which i do not want in edit mode, can you please let me know how to achieve this?
@komalgithub : see following cell template
<div class="ui-grid-cell-contents">
<i class="glyphicon glyphicon-edit" ng-if="!row.inlineEdit.isEditModeOn" ng-click="row.inlineEdit.enterEditMode($event)"/>
</div>
This is an "edit" icon we have in first column of a grid. It's hidden when edit mode is active. Wehn clicked, row edit mode is activated.
Does this help?
EDIT: I'm not 100% sure this will work in your version. We have made some modifications and I'm not sure if any of them are needed for this to work.
Does it work with last version of UI-grid ?
don't know, hoping to not have to that try anytime soon, either. Has there been major changes? I'm out of the loop on ng-grid. Anyone try this recently?