angular-ui/ui-grid

editableCellTemplate and enableCellEditOnFocus not working together

Open

#4 286 ouverte le 28 août 2015

Voir sur GitHub
 (5 commentaires) (3 réactions) (0 assignés)JavaScript (2 496 forks)batch import
grid-edithelp wanted

Métriques du dépôt

Stars
 (5 395 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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.

Guide contributeur