Coder
Coder

Reputation: 223

get the cell value and row value in ui-grid in angular js?

How to get cell value and row value in ui-grid?

in ng-grid:

 <span ng-click=\"rowClick()\" ng-bind=\"row.getProperty(col.field)\"></span>

Like is there any option ui-grid?

could you please some one suggest Thanks in advance !

Upvotes: 0

Views: 6896

Answers (1)

un.spike
un.spike

Reputation: 5133

external event: http://ui-grid.info/docs/#/tutorial/301_editableOnFocus

or internal:

if u wanna implement it in inside grid, u should change cellTemplate like that:

<span ng-click=\"grid.appScope.getProperty(row)\"></span>

and define getProperty(...) method

$scope.getProperty = function(rowData){
     console.log(rowData);
}

grid and row - can be used inside template for

Upvotes: 1

Related Questions