Peter
Peter

Reputation: 1687

ui-grid use only editable cellTemplate

I want a ui-grid where you can edit directly without changing the template.

I tried to override the cellTemplate with the standard of the editable celltemplate, but it isnt getting dirty now.

<div><form name="inputForm"><input type="INPUT_TYPE" ng-class="'colt' + col.uid" ui-grid-editor ng-model="MODEL_COL_FIELD"></form></div>

So i dont want to show the cellTemplate instead i want to show the editable cellTemplate only.

Upvotes: 1

Views: 3053

Answers (1)

imbalind
imbalind

Reputation: 1182

It looks totally possible to me, just make sure your field attribute contains no unusual symbols (dash or dots mainly, use only letters to be on the safe side).

Look at this plunkr.

Upvotes: 1

Related Questions