I generated a grid with all the server side pagination and sorting. And I also inserted a edit option column in the grid. This, I could achieve using the custom tempelating functionality. However I have been struggling to pass the 'id' as a parameter for edit.
columnDefs: [
{ name: "Options2", displayName: 'Select', cellTemplate: '<div ng-click="alert();">click me</div>' },
{ name: 'ContactID', displayName: 'ID', },
{ name: 'FirstName' },
{ name: 'LastName' },
{
name: 'Options',
cellTemplate: '<div>' +
' <a ui-sref="editcontact({contactId: ContactID})">Edit</a>' +
'</div>'
}
],
On hovering over the edit option :

also,Routing :
.state('editcontact',
{
url: '/editcontact/:contactId',
controller: 'EditContactCtrl',
templateUrl: 'views/contact/editContact.html', controllerAs: 'vm',
resolve: {
contactInfo: ['contactService', '$stateParams', function (contactService, $stateParams) {
return contactService.getContact($stateParams.contactId).then(function (response) {
return response;
});
}]
},
})