I have to create the following grid. But I want to apply a cellFiler or rowFilter. How can I do it?
$scope.columns = [{ field: 'Trade Version #110010' }];
$scope.gridOptions = {
enableSorting: true,
columnDefs: $scope.columns,
onRegisterApi: function( gridApi ) {
$scope.gridApi = gridApi;
var cellTemplate = 'ui-grid/selectionRowHeader'; // you could use your own template here
$scope.gridApi.core.addRowHeaderColumn( { name: 'rowHeaderCol', displayName: '', width: 200, cellTemplate: "<div class=\"ui-grid-top-panel ui-grid-row-header-cell ui-grid-disable-selection\"><div class=\"ui-grid-cell-contents\">{{row.entity['property']}}</div></div>"} );
}
};
$scope.gridOptions.data = [
{
"property": "Modified Date",
"cellFilter": "convertLocalDate | date: 'MMM dd, yyyy'",
"Trade Version #110010": [
11,
11,
2017
]
},
{
"property": "Trade Date",
"Trade Version #110010": [
11,
11,
2017
]
}...
]
attaching the plucker Here
Thanks in advance Kiran gopal
Not sure what you're trying to do with it but the following will concatenate "Test Filter" to the end of each row.