Row expand on click of celltemplate, UI-Grid in Angular JS
Hi All,
I would like to expand the row on click of celltemplate data instead of Plus Sign.
Please help.
Please see image below.
Its expanding on click of Plus Sign but wanted it to be from click of Jobname.

write a row template with a callback function into your controller/directive which would take the row and use row expansion api to do the rest..
Below is the cell template I used to done the same thing:
var cellTemplate = '<div ng-click="grid.api.expandable.toggleRowExpansion(row.entity)" class="ui-grid-cell-contents" title="TOOLTIP">{{COL_FIELD CUSTOM_FILTERS}}</div>';
Can have a look so it might help u for your question asked http://plnkr.co/edit/YnLVEUS4gmZWXjgsNXdU?p=preview
@magnusakselvoll using v4.0.7 the event is fired too in the [+] icon solved like this
if (event.target.localName === 'div')
if someone is using typescript, the event param is (parameter) event: angular.IAngularEvent you can access with
// plain js
event['target']['localName']
// or lodash
_.at(event as any, 'target.localName');
// or change event type declaration
event:any
how to change the color of row selection