angularjs - Ng-grid editable grid does not get focus on click -
i need grid user can edit. need able add row data set, preferably grid. first of need able edit data.
i thought use plain 2 way binding this. clicking on cell not make editable. have added enablecelledit:true , tried add enablecelleditonfocus. prefer having cells editable without having use template. cells contain number , date.
below grid options pass grid.
$scope.gridoptions = { data: 'account.interests',enablerowselection: false, enablecelleditonfocus: true, multiselect: false, columndefs: [{ field: 'rate', enablecelledit: true, width: 60 }, { field: 'date', enablecelledit: true, cellfilter: 'date:\'yyyy-mm-dd\'' }] };
and grid in view:
<div ng-if="showinterestrates" > <div ui-grid="gridoptions"></div> </div>
to edit future must add edit module: 'ui.grid.edit' module , must include ui-grid-edit directive on grid element.
Comments
Post a Comment