Repository: flex-asjs
Updated Branches:
  refs/heads/feature/chart-work 3b9d4368b -> 3e8efbdc4


Updated DataGrid example to work with recent changes.


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/7af092b1
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/7af092b1
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/7af092b1

Branch: refs/heads/feature/chart-work
Commit: 7af092b1007e92b97304dd29d12adfcefeb5fa3b
Parents: d1d2754
Author: Peter Ent <[email protected]>
Authored: Fri Mar 24 10:21:39 2017 -0400
Committer: Peter Ent <[email protected]>
Committed: Fri Mar 24 10:21:39 2017 -0400

----------------------------------------------------------------------
 .../src/main/flex/MyInitialView.mxml             | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7af092b1/examples/flexjs/DataGridExample/src/main/flex/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/DataGridExample/src/main/flex/MyInitialView.mxml 
b/examples/flexjs/DataGridExample/src/main/flex/MyInitialView.mxml
index 2f543e5..8ac036d 100644
--- a/examples/flexjs/DataGridExample/src/main/flex/MyInitialView.mxml
+++ b/examples/flexjs/DataGridExample/src/main/flex/MyInitialView.mxml
@@ -29,30 +29,31 @@ limitations under the License.
                ]]>
     </fx:Script>
        
-       <js:Label id="output" x="450" y="30" width="100" />
+       <js:Label id="output" x="450" y="30"/>
+       
                
-       <js:DataGrid id="dataGrid" x="20" y="30" width="400" height="300" 
change="dataGridChange()" rowHeight="30">
+       <js:DataGrid id="dataGrid" x="20" y="30" width="400" height="200" 
change="dataGridChange()" rowHeight="40">
                <js:beads>
-                       <js:DataGridPercentageLayout />
+                       <!--<js:DataGridPercentageLayout />-->
                        <js:ConstantBinding
                                sourceID="applicationModel"
                                sourcePropertyName="productList"
                                destinationPropertyName="dataProvider" />
                </js:beads>
                <js:columns>
-                       <js:DataGridColumn label="Image" dataField="image" 
columnWidth="25" itemRenderer="products.ProductItemRenderer" />
-                       <js:DataGridColumn label="Title" dataField="title" 
columnWidth="50" />
-                       <js:DataGridColumn label="Sales" dataField="sales" 
columnWidth="25" />
+                       <js:DataGridColumn label="Image" dataField="image" 
columnWidth="100" itemRenderer="products.ProductItemRenderer" />
+                       <js:DataGridColumn label="Title" dataField="title" 
columnWidth="200" />
+                       <js:DataGridColumn label="Sales" dataField="sales" 
columnWidth="100" />
                </js:columns>
        </js:DataGrid>
                
-       <js:DataGrid id="dataGrid2" x="20" y="400" width="400" height="300" 
change="dataGridChange()" rowHeight="40">
+       <js:DataGrid id="dataGrid2" x="20" y="300" width="400" height="245" 
change="dataGridChange()" rowHeight="40">
                <js:beads>
-                   <js:DataGridLinesBead>
+                   <!--<js:DataGridLinesBead>
                       <js:stroke>
                           <js:SolidColorStroke color="#FF8800" weight="2" />
                       </js:stroke>
-                   </js:DataGridLinesBead>
+                   </js:DataGridLinesBead>-->
                        <js:ConstantBinding
                                sourceID="applicationModel"
                                sourcePropertyName="productList"

Reply via email to