i have the code in jquery. but i am not expert in angular js to convert this.
var maxWidth = Math.max.apply( null, $( '.ui-grid-cell, .ui-grid-header-cell' ).map( function () {
return $( this ).outerWidth( true );
}).get() );
how to get outerwidth by angular js?