resolvi da seguinte forma, aumentei as colunas que a antecedem, ficou um pouco estranho (grande demais pros valores), mas, deu certo =)
Em 30 de março de 2011 08:25, oTTo Mostaert <[email protected]> escreveu: > oi Marcelo, obg pela resposta. Segui a dica que você passou mas, não > obtive sucesso. > > código do DataGrid agora: > > <mx:DataGrid id="dataGridConsultaPosicaoMedicoes" > dataProvider="{model.listaConsultaPosicaoMedicoes}" > width="100%" height="100%" > horizontalScrollPolicy="on" > verticalScrollPolicy="on" > lockedColumnCount="1"> > <mx:columns> > <mx:DataGridColumn headerText="Período" > dataField="consultaPosicaoMedicoesPk.dmaCompetenciaMedicaoStr" > textAlign="center" width="100" /> > <mx:DataGridColumn headerText="Medido" > dataField="valMedido" > labelFunction="UtilDataGrid.formatarMoeda" textAlign="right" > width="100" /> > <mx:DataGridColumn headerText="Fat. > Terceiros" > dataField="valFatTerceiros" labelFunction="UtilDataGrid.formatarMoeda" > textAlign="right" width="100" /> > <mx:DataGridColumn headerText="Faturado" > dataField="valFaturado" > labelFunction="UtilDataGrid.formatarMoeda" textAlign="right" > width="100" /> > <mx:DataGridColumn headerText="Recebido" > dataField="valRecebido" > labelFunction="UtilDataGrid.formatarMoeda" textAlign="right" > width="100" /> > <mx:DataGridColumn headerText="A Receber" > dataField="valReceber" > labelFunction="UtilDataGrid.formatarMoeda" textAlign="right" > width="100" /> > <mx:DataGridColumn headerText="Detalhar" > textAlign="center" > resizable="false" width="70" > > <mx:itemRenderer> > <mx:Component> > <mx:VBox> > <mx:Script > source="ConsultaPosicaoMedicoesListAS.as" /> > <mx:Image > id="imgLupa" source="{AssetsMccConsultas.ICO_LUPA}" > > toolTip="Detalhar" buttonMode="true" > > horizontalAlign="center" > > > click="{outerDocument.exibirDetalhamento(data.consultaPosicaoMedicoesPk.codAreaNegocio, > > data.consultaPosicaoMedicoesPk.codEstabelecimento, > > data.consultaPosicaoMedicoesPk.numSeqContrato, > > UtilString.formatarData(data.consultaPosicaoMedicoesPk.dmaCompetenciaMedicao))}" > / > > > </mx:VBox> > </mx:Component> > </mx:itemRenderer> > </mx:DataGridColumn> > <mx:DataGridColumn headerText="lalala" > visible="false" /> > </mx:columns> > </mx:DataGrid> > > =( > > On 29 Mar, 19:13, Marcelo Daniel <[email protected]> wrote: > > Você já experimentou pôr o width nas outras colunas que a antecedem? > > > > Em 29 de março de 2011 16:24, oTTo (GMail) <[email protected]> escreveu: > > > > > > > > > > > > > > > > > > > > > Olá jovens, a pouco tempo venho estudando flex e tenho pequenos > problemas > > > que nao consegui resolver buscando no google nem na tentativa-erro. > > > Seguinte, tenho um DataGrid com várias colunas, como mostra a imagem em > > > anexo > > > > > o código da minha dataGrid: > > > > > <mx:DataGrid id="dataGridConsultaPosicaoMedicoes" > > > dataProvider="{model.listaConsultaPosicaoMedicoes}" > > > width="100%" height="100%" horizontalScrollPolicy="on" > > > verticalScrollPolicy="on" > > > lockedColumnCount="1"> > > > <mx:columns> > > > <mx:DataGridColumn headerText="Column1" /> > > > <mx:DataGridColumn headerText="Column2" /> > > > <mx:DataGridColumn headerText="Column3" /> > > > <mx:DataGridColumn headerText="Column4" /> > > > <mx:DataGridColumn headerText="Column5" /> > > > <mx:DataGridColumn headerText="Detalhar" textAlign="center" > > > resizable="false" width="70" > > > > <mx:itemRenderer> > > > <mx:Component> > > > <mx:VBox horizontalAlign="center" width="20"> > > > <mx:Script source="ConsultaPosicaoMedicoesListAS.as" /> > > > <mx:Image id="imgLupa" source="{AssetsMccConsultas.ICO_LUPA}" > > > toolTip="Detalhar" buttonMode="true" > > > horizontalAlign="center" > > > click="{outerDocument.exibirDetalhamento())}" /> > > > </mx:VBox> > > > </mx:Component> > > > </mx:itemRenderer> > > > </mx:DataGridColumn> > > > </mx:columns> > > > </mx:DataGrid> > > > > > Eu preciso que a última coluna fique pequena, fique do tamanho da > palavra > > > "Detalha" que é o título da coluna. Alguém tem alguma dica? > > > > > obrigado. > > > > > -- > > > []´s > > > > > oTTo Mostaert (GMail) > > > otto3d [at] gmail [dot] com > > > > > -- > > > Recebeu esta mensagem porque está inscrito no grupo "Mailing List da > > > Comunidade Portuguesa de Rich Internet Applications -www.riapt.org" > dos > > > Grupos do Google. > > > Para publicar uma mensagem neste grupo, envie um e-mail para > > > [email protected]. > > > Para anular a inscrição neste grupo, envie um e-mail para > > > [email protected]. > > > Para ver mais opções, visite este grupo em > > >http://groups.google.com/group/riapt?hl=pt-PT. > > > > -- > > Todas as coisas cooperam para o bem daqueles que amam a Deus. > > -- > Recebeu esta mensagem porque está inscrito no grupo "Mailing List da > Comunidade Portuguesa de Rich Internet Applications - www.riapt.org" dos > Grupos do Google. > > Para publicar uma mensagem neste grupo, envie um e-mail para > [email protected]. > Para anular a inscrição neste grupo, envie um e-mail para > [email protected]. > Para ver mais opções, visite este grupo em > http://groups.google.com/group/riapt?hl=pt-PT. > > -- []´s oTTo Mostaert (GMail) otto3d [at] gmail [dot] com -- Recebeu esta mensagem porque está inscrito no grupo "Mailing List da Comunidade Portuguesa de Rich Internet Applications - www.riapt.org" dos Grupos do Google. Para publicar uma mensagem neste grupo, envie um e-mail para [email protected]. Para anular a inscrição neste grupo, envie um e-mail para [email protected]. Para ver mais opções, visite este grupo em http://groups.google.com/group/riapt?hl=pt-PT.
