angular-ui/ui-grid

editableCellTemplate and enableCellEditOnFocus not working together

Open

#4,286 opened on Aug 28, 2015

View on GitHub
 (5 comments) (3 reactions) (0 assignees)JavaScript (5,395 stars) (2,496 forks)batch import
grid-edithelp wanted

Description

So we have an issue where we need to use an editableCellTemplate and need enableCellEditOnFocus together. However it seems that they are not working together correctly. The Next row receives focus but the caret/cursor isn't there. CellNav and edit are both enabled and it works on 'non-templated' cells. Is there something I can add to the template to allow it to edit on focus?

Cell Template (new to commenting on github had to get rid of the </>): editableCellTemplate: input id="editBtn" type="string" ng-model="MODEL_COL_FIELD" ng-enter="grid.appScope.edit(row)"

Edit: the edit on focus also works if I add ui-grid-editor to the template options but prevents the ng-enter event from firing.

Contributor guide