Vania
07-07-2008, 04:10 PM
Hi World =) !!!
I 've a trouble (again) and i need your help (plsssss):
I´ve work with Datagrid, where their columns are created dynamically.
Every columns is textArea Type.
When i execute this application is fine, except because all textAreas
have the same size independent of it content, that is, sometimes part
of content is hide or remain many empty lines...
Until now, code is:
...
dgCol_col = new DataGridColumn();
dgCol_col.headerText = micontrolador.asrRead_mp.arrayCol_X[i].nomX;
dgCol_col.dataField = micontrolador.asrRead_mp.arrayCol_X[i].nomX;
var txtArea:ClassFactory = new ClassFactory(TextArea);
var t:TextArea = new TextArea();
dgCol_col.itemRenderer = txtArea;
array_columnasDg.push(dgCol_col);
}
dg_selecX.columns = array_columnasDg;
dg_selecX.variableRowHeight = true;
dg_selecX.dataProvider = micontrolador.asrRead_mp.arrayCol_DatosX;
With this, i only have rows with the same heigh, where every textArea
has 2 lines maximum to deploy. Therefore, there are information inside
textarea that i cant see it if i dont use scroll ...
Then, I WANT that every datagrid's textArea shows all it content (and
NOT USE SCROLL for read information),
therefore I NEED that every row of datagrid has the height, equal to
the highest textArea of this row.
I hope that you can understand my problem and you help to resolve it
(please) It's very important for my job :S
Thanks in advance for you time and kindness
Greetings,
Vania
I 've a trouble (again) and i need your help (plsssss):
I´ve work with Datagrid, where their columns are created dynamically.
Every columns is textArea Type.
When i execute this application is fine, except because all textAreas
have the same size independent of it content, that is, sometimes part
of content is hide or remain many empty lines...
Until now, code is:
...
dgCol_col = new DataGridColumn();
dgCol_col.headerText = micontrolador.asrRead_mp.arrayCol_X[i].nomX;
dgCol_col.dataField = micontrolador.asrRead_mp.arrayCol_X[i].nomX;
var txtArea:ClassFactory = new ClassFactory(TextArea);
var t:TextArea = new TextArea();
dgCol_col.itemRenderer = txtArea;
array_columnasDg.push(dgCol_col);
}
dg_selecX.columns = array_columnasDg;
dg_selecX.variableRowHeight = true;
dg_selecX.dataProvider = micontrolador.asrRead_mp.arrayCol_DatosX;
With this, i only have rows with the same heigh, where every textArea
has 2 lines maximum to deploy. Therefore, there are information inside
textarea that i cant see it if i dont use scroll ...
Then, I WANT that every datagrid's textArea shows all it content (and
NOT USE SCROLL for read information),
therefore I NEED that every row of datagrid has the height, equal to
the highest textArea of this row.
I hope that you can understand my problem and you help to resolve it
(please) It's very important for my job :S
Thanks in advance for you time and kindness
Greetings,
Vania