<md-dialog aria-label="{{dialogTitle}}" style="height:500px;width:1080px" layout="column">
		<md-toolbar class="small-toolbar">
		   <div class="md-toolbar-tools">
		     <h3>{{dialogTitle}}</h3>
		     <span flex></span>
		     <md-icon ng-click="print()" md-font-icon="fa-print" class="fa" aria-label="Stampa" >
		     	<md-tooltip>Stampa il dettaglio dei mandati</md-tooltip>
	     	</md-icon>
		     <md-icon ng-click="confirmDialog()" style="margin-left:14px" md-font-icon="fa-times" class="fa" aria-label="Chiudi" >
		     	<md-tooltip>Chiudi</md-tooltip>
		     </md-icon>
		   </div>
		 </md-toolbar>

 <div layout="row" flex="100" style="width:100%;overflow:scroll">
 	<md-list id="list" flex>
 		<md-subheader layout="row">
 			<div flex="100" layout="row" id="header">
	 		 	<md-button ng-click="setOrderField('identificativoMandato')" ng-style="getColumnWidth(0)">
	 				ID
	 				<md-icon md-font-icon="fa fa-sort" class="fa"></md-icon>
 				</md-button>
	 		 	<md-button ng-click="setOrderField('dataAttivazioneMandato')" ng-style="getColumnWidth(1)">
	 				Attivazione
	 				<md-icon md-font-icon="fa fa-sort" class="fa"></md-icon>
 				</md-button>
 				<md-button ng-click="setOrderField('dataRevocaMandato')" ng-style="getColumnWidth(2)">
	 				Revoca
	 				<md-icon md-font-icon="fa fa-sort" class="fa"></md-icon>
 				</md-button>
				<md-button ng-click="setOrderField('tipoMandato')" ng-style="getColumnWidth(3)">
	 				Origine
	 				<md-icon md-font-icon="fa fa-sort" class="fa"></md-icon>
 				</md-button> 		
 				<md-button ng-click="setOrderField('statoTipoMandato')" ng-style="getColumnWidth(4)">
	 				Stato
	 				<md-icon md-font-icon="fa fa-sort" class="fa"></md-icon>
 				</md-button>
 				<md-button ng-click="setOrderField('prezzoUnitarioMandato')" ng-style="getColumnWidth(5)">
	 				Prezzo unit.
	 				<md-icon md-font-icon="fa fa-sort" class="fa"></md-icon>
 				</md-button>		
 				<md-button ng-click="setOrderField('divisa')" ng-style="getColumnWidth(6)">
	 				Divisa
	 				<md-icon md-font-icon="fa fa-sort" class="fa"></md-icon>
 				</md-button>
 				<md-button ng-click="setOrderField('datarendi')" ng-style="getColumnWidth(7)">
	 				Acquisizione
	 				<md-icon md-font-icon="fa fa-sort" class="fa"></md-icon>
 				</md-button>
				<md-button ng-click="setOrderField('tipoSeda')" ng-style="getColumnWidth(8)">
	 				Tipo SEDA
	 				<md-icon md-font-icon="fa fa-sort" class="fa"></md-icon>
 				</md-button> 
			</div>				
 		</md-subheader>
		<div class="virtualRepeatVerticalUsage" id="container" ng-style="getListHeight()" ng-style="getMaxListWidth()"  ng-keydown="key($event)">
			<md-virtual-repeat-container id="vertical-container" ng-style="getMaxListWidth()">
			     <div class="md-2-line hilight" md-on-demand md-virtual-repeat="data in infiniteItems" style="margin-left:30px" ng-style="getMaxListWidth()">
				     <div class="md-2-line" style="min-height:60px;" ang-style="getMaxListWidth()"  layout="row"  
				     		ng-class="{'odd-row':$index%2==1,'even-row':$index%2==0}"
				     		 layout-align="start center" flex>
				     		 					     
				     	<div style="width:0;height:60px"></div>	 
				     	<div ng-style="getColumnWidth(0)" ><span >{{data.identificativoMandato}}</span></div>
				     	<div ng-style="getColumnWidth(1)" ><span >{{data.dataAttivazioneMandato.formatAsDate()}}</span></div>
				     	<div ng-style="getColumnWidth(2)" ><span >{{data.dataRevocaMandato.formatAsDate()}}</span></div>
				     	<div ng-style="getColumnWidth(3)" ><span >{{data.tipoMandato}}</span></div>
				     	<div ng-style="getColumnWidth(4)" ><span >{{data.statoTipoMandato}}</span></div>
				     	<div ng-style="getColumnWidth(5)" style="text-align:right"><span >{{data.prezzoUnitarioMandato}}</span></div>
				     	<div ng-style="getColumnWidth(6)" ><span >{{data.divisa}}</span></div>
						<div ng-style="getColumnWidth(7)" ><span >{{data.datarendi.formatAsDate()}}</span></div>
						<div ng-style="getColumnWidth(8)" ><span >{{data.tipoSeda}}</span></div>
					</div>
				</div>
			</md-virtual-repeat-container>
		</div>
	</md-list>
	
</md-dialog>
