 function store.load(sender, records, successful, operation, eOpts)
{var tpl=new Ext.XTemplate(
'<table class="tblcontgeral">'+ 
 '<div class="product" style="display:flex;'+  
 'justify-content: center;'+
 'flex-direction: column;'+  
 'width:100%;">'+  
  '<div style="background-color:#0e4279;height:20px;padding:2px;border-radius: 5px 5px 0px 0px;white-space:normal;display: grid;grid-template-columns:repeat(4, 1fr);">'+
  '<input type="button" title="Desconto %" style="background-color:#0f1e14;line-height:0;border-style:groove;color:white;border-radius:5px;" value="Desc. %" onClick="javascript:FRMVendas.UniDBGrid1.btn1Click({0});">'+
  '<input type="button" title="Desconto R$" style="background-color:#0f1e14;line-height:0;border-style:groove;color:white;border-radius:5px;" value="Desc.R$" onClick="javascript:FRMVendas.UniDBGrid1.btn2Click({0});">'+
  '<input type="button" title="Altera Qtd" style="background-color:#0f1e14;line-height:0;border-style:groove;color:white;border-radius:5px;" value="Qtd" onClick="javascript:FRMVendas.UniDBGrid1.btn3Click({0});">'+
  '<input type="button" title="Excluir item" style="background-color:#0f1e14;line-height:0;border-style:groove;color:white;border-radius:5px;" value="Exclui" onClick="javascript:FRMVendas.UniDBGrid1.btn4Click({0});">'+
 '</div>'+  
 '</div>'+  
 '<div style="display:flex;">'+  
 '<div style="background-color:rgb(230, 238, 240);'+ 
 'padding-left: 3px;'+ 
 'border: 1px solid #4a4444;'+
 'box-sizing: border-box;'+  
 'white-space: normal;'+
 'display: inline-block;'+
 'align-self:auto;'+  
 'width:100%;"><div Style="color:#0f1d6a;">Seq: <strong> {0} </strong>Cod.Item: <strong>{1} {2}</strong></div>'+
 '<spam Style="color:#0f1d6a;">UN:</spam><spam Style="color:#91062d;"><strong> {3} </strong></spam>'+               
 '<spam Style="color:#0f1d6a;">Qtd:</spam><spam Style="color:#91062d;"><strong> {[this.getqtd(values)]} </strong></spam>'+
 '<spam Style="color:#0f1d6a;"> X </spam><spam Style="color:#91062d;"><strong> {[this.getvalor(values)]} </strong></spam>- ('+
 '<spam Style="color:#0f1d6a;">Desc %</spam><spam Style="color:#91062d;"><strong> {6} </strong></spam>'+
 '<spam Style="color:#0f1d6a;">Desc R$</spam><spam Style="color:#91062d;"><strong> {[this.getvdesc(values)]} </strong></spam>)'+
 '<spam Style="color:#0f1d6a;"> = </spam><spam Style="color:#91062d;"><strong> {[this.getvtotal(values)]} </strong></spam>'+
 '<spam Style="color:#0f1d6a;"> Estoq: </spam><spam Style="color:#91062d;"><strong> {9} </strong></spam>'+
 '</div>'+
 '</div>'+  
 '<div style="margin-top:5px;'+ 
 'background-color:rgb(78, 79, 78);'+ 
 'padding:2px;'+
 'margin:1px;'+
 'border-radius: 0px 0px 5px 5px;">'+
 '</div>'+  
 '</div>'+  
 '</table>',{
getvalor:function(values){
return Ext.util.Format.number(parseFloat(values[5]), '0,000.00');
},
getvdesc:function(values){
return Ext.util.Format.number(parseFloat(values[7]), '0,000.00');
},
getvtotal:function(values){
return Ext.util.Format.number(parseFloat(values[8]), '0,000.00');
},
getqtd:function(values){
return Ext.util.Format.number(parseFloat(values[4]), '0.000');
} 
}       
);
 Ext.defer(function(){
  sender.grid.setColumns([
    {
      text: '',
      dataIndex: '0',
      flex:1,      
      xtype: 'templatecolumn',
      tpl: tpl
    }
  ]);  
  sender.grid.getColumns()[0].show();
 }, 500);     
}