cristallium opened a new issue #519: SDK 0.9.6 <js:DataGridPercentageView/> 
bead work only on header DataGrid, not on cells
URL: https://github.com/apache/royale-asjs/issues/519
 
 
   Hi,
   
   Let't take this code 
   
   ```
   <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
                           xmlns:js="library://ns.apache.org/royale/basic" 
                  applicationComplete="ev_applicationComplete()" >
   
        <js:valuesImpl>
                <js:SimpleCSSValuesImpl />
        </js:valuesImpl>
   
       <js:initialView>
           <js:View>
               <js:DataGrid id="mydg" width="100%" height="400" rowHeight="40">
                   <js:beads>
                       <js:DataGridPercentageView/>
                   </js:beads>
                   <js:columns>
                       <js:DataGridColumn label="label" dataField="label" 
columnWidth="50" />
                       <js:DataGridColumn label="value" dataField="value" 
columnWidth="50" />
                   </js:columns>
               </js:DataGrid>
           </js:View>
       </js:initialView>
   
        <fx:Style>
                @namespace js "library://ns.apache.org/royale/basic";
           
                .DataGridColumnList .StringItemRenderer {
                        border-style: solid;
                        border-color: #CCCCCC;
                        border-width: 1px;
                        background-color: #ffffff;
                        line-height: 40px;
                        padding: 2px;
                }
                
                .DataGridColumnList .DataItemRenderer {
                        border-style: solid;
                        border-color: #CCCCCC;
                        border-width: 1px;
                        background-color: #ffffff;
                        line-height: 40px;
                        padding: 2px;
           }
   
        </fx:Style>
   
       <fx:Script>
       <![CDATA[
           private var ar:Array = ["Bob", "Joe", "Frank", "Sally"];
   
           private function ev_applicationComplete():void {
               mydg.dataProvider = ar;
           }
       
       ]]>
       </fx:Script>
   </js:Application>
   ```
   
   Here is the result 
   
   
![image](https://user-images.githubusercontent.com/6851433/67050097-0708f180-f138-11e9-8f27-f51d85cd1619.png)
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to