ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

How can you expand rows by clicking on one of the colums of the row and not the '+' icon?

Open sanketch opened this issue 11 years ago • 2 comments

I am trying to expand the rows by clicking on one of the columns itself (and not the + sign). Is there any way to customize this so the row expands by clicking (as in the doc example) on a specific ID or a name?

Doc for expandable grid: http://ui-grid.info/docs/#/tutorial/216_expandable_grid

sanketch avatar Aug 03 '15 16:08 sanketch

set row.isExpanded= true, to make the row expand.

you can get this row, by this event gridApi.expandable.on.rowExpandedStateChanged($scope, function(row){ row.isExpanded= true,//once you get the row object as param, set this isExpanded property to true });

bhrugs avatar Aug 06 '15 21:08 bhrugs

can use this if need http://plnkr.co/edit/YnLVEUS4gmZWXjgsNXdU?p=preview

manjunathmofs avatar Aug 18 '17 14:08 manjunathmofs