Ticket #7804 (new defect)
Setting "width" attribute to "auto" in 1.2 DataGrid markup has no effect.
| Reported by: | rickoshay | Owned by: | toonetown |
|---|---|---|---|
| Priority: | normal | Milestone: | future |
| Component: | DojoX Grid | Version: | 1.2beta |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Setting the width to "auto" in the markup for a DataGrid? has no effect; setting the width attribute to "auto" in a programmatic declaration does produce an effect. The column headings exist in markup, so at the very least it should be able to auto-size each column. Using "auto" in a programmatic declaration does cause the headings to expand to fit the column text.
A secondary issue is that, even the programmatic version, does not auto-size to the widest data display value in its column, as tables typically do.
Needless to say, setting a fixed width in pixels on a text field should be avoided like the plague, but that's the only thing that seems to work in either case.
Could this be a life-cycle issue? That is, when are the data available versus when the parser sets the size? I tried doing explicit parse in the OnLoad?, same results.