Updated Branches: refs/heads/develop bb3c62b75 -> c9db817cb
Updated DataGridExample source to use DataGridColumn and RowHeightBead beads. Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/20320a88 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/20320a88 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/20320a88 Branch: refs/heads/develop Commit: 20320a8840cee6ff991981f52ecb3f406f340d5c Parents: bb3c62b Author: Peter Ent <[email protected]> Authored: Wed Jan 29 15:19:46 2014 -0500 Committer: Peter Ent <[email protected]> Committed: Wed Jan 29 15:19:46 2014 -0500 ---------------------------------------------------------------------- examples/DataGridExample/src/MyInitialView.mxml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/20320a88/examples/DataGridExample/src/MyInitialView.mxml ---------------------------------------------------------------------- diff --git a/examples/DataGridExample/src/MyInitialView.mxml b/examples/DataGridExample/src/MyInitialView.mxml index 16a2813..5190c45 100644 --- a/examples/DataGridExample/src/MyInitialView.mxml +++ b/examples/DataGridExample/src/MyInitialView.mxml @@ -33,19 +33,20 @@ limitations under the License. </fx:Script> <basic:Label id="output" x="450" y="30" width="100" /> - + <basic:DataGrid id="dataGrid" x="20" y="30" width="400" height="300" change="dataGridChange()" > <basic:beads> - <models:MyGridPresentation rowHeight="50" /> <basic:ConstantBinding sourceID="applicationModel" sourcePropertyName="productList" destinationPropertyName="dataProvider" /> - <basic:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="labelFields" - destinationPropertyName="labelFields" /> + <mybeads:RowHeightBead rowHeight="40" /> </basic:beads> + <basic:columns> + <basic:DataGridColumn label="Image" dataField="image" columnWidth="100" itemRenderer="products.ProductItemRenderer" /> + <basic:DataGridColumn label="Title" dataField="title" columnWidth="200" /> + <basic:DataGridColumn label="Sales" dataField="sales" columnWidth="100" /> + </basic:columns> </basic:DataGrid> </basic:ViewBase>
