In adobe Flex datagrid height is equally to fix height . I want to make datagrid height is depend data .
相关问题
- How to load flex swf from flash?
- Converting Date with Time in PST into UTC format
- WPF DataGrid - row for new entry not visible
- How to delete row datagrid and update SQL database
- Accessing the WPF DataGrid “empty” or “rowcolumn”
相关文章
- Unreasonable WPF DataGrid Loading Time
- How to programmatically access a datagrid row deta
- Add custom tooltip to row in DataGrid
- Trace on Chrome/Browser console
- How to disable the 'Select All' button of
- DataGrid cell single click edit mode in wpf c#?
- Is building separate .swc allow a faster loading o
- Assigning an array of objects to a DataGrid
I don't quite understand your question but if you are asking how to size the DataGrid to the number of rows in the dataProvider, you can try:
or
I get the same problem, using Flex SDK 3.3. I've seen several Adobe bug reports over the years regarding this, but the bug checkers always say it's resolved. Best thing I can suggest is to set an explicit pixel height on the datagrid, or you can try this:
Bart
Thanks for those saying:
- this actually works for me in Flex 4. However I'd like to point out that according to the documentation "rowCount includes the header row", so I suppose the answer should be
Nevertheless, I think the doco is wrong because the former solution works for me.
Otherwise, does this help? http://www.actionscript.org/forums/showthread.php3?t=220962
You can set each row of the datagrid to fit based on the contents of a particular column of that row by setting the "variableRowHeight" attribute to true on the datagrid and setting the "wordWrap" attribute to true on the dataGridColumn that will contain the variable height content.
In Spark DataGrid you can set the requestedRowCount to the dataProviderLength, BUT on condition you Do Not Set a Height for the Datagrid.
Also, for a dataProvider that has a length of less than 3, It'll always show 3 rows.
Note Also Spark offers us requestedMaxRowCount & requestedMinRowCount.
Of course, avoid in your datagrid MXML something like height="100%" or top="10" bottom="123"