aharui commented on issue #658: DataGrid/DataGridColumn problems in 
Scroller/Group/Panel
URL: https://github.com/apache/royale-asjs/issues/658#issuecomment-593224910
 
 
   This is what worked for me:
   
   ```
   <?xml version="1.0" encoding="utf-8"?>
   <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
                           xmlns:mx="library://ns.apache.org/royale/mx"
                           xmlns:s="library://ns.apache.org/royale/spark" 
width="1400" height="400">
        <fx:Script>
                <![CDATA[
   
                        import mx.collections.ArrayCollection;
   
                        [Bindable]
                        private var myCp:ArrayCollection = new ArrayCollection([
                                {
                                        no: "1",
                                        contactPointId: "00000001",
                                        contactPoint: "No-Paper",
                                        zipCode: "123-4567",
                                        prefecture: "Kagawa",
                                        city: "Takamatsu",
                                        address: "",
                                        phoneNumber: "",
                                        faxNumber: "123456789",
                                        templateId1: "ABCD0001",
                                        templateId2: "ABCD0002",
                                        templateId3: "ABCD0003",
                                        templateId4: "ABCD0004",
                                        templateId5: "ABCD0005",
                                        multiFormFlagLabel: "Multi-form (AB, 
CD, both AB and CD)",
                                        kanjiFlagLabel: "Not Required",
                                        furiganaFlagLabel: "Not Required",
                                        loanAmountFlagLabel: "Not required",
                                        insuranceAmountSumFlagLabel: "Not 
Required",
                                        insurancePlanId: "00112233",
                                        partnerIdLabel: "Partner A",
                                        userName: "",
                                        updatedDate: "",
                                        deleteFlagLabel: ""
                                }
                        ]);
                ]]>
   
        </fx:Script>
   
        <s:Scroller width="100%" height="100%">
                <s:Group>
                        <s:Panel x="19" y="235" width="1324" height="394" 
title="Search Result">
                                <mx:AdvancedDataGrid id="workTable" 
tabFocusEnabled="false" x="-1" y="0" width="1324" height="100%" 
                                                         
horizontalScrollPolicy="on" dataProvider="{myCp}">
                                        <mx:columns>
                                                <mx:AdvancedDataGridColumn 
width="65" dataField="no" headerText="No." />
                                                <mx:AdvancedDataGridColumn 
dataField="contactPointId" headerText="お客さま連絡先ID" width="300" />
                                                <mx:AdvancedDataGridColumn 
dataField="contactPoint" headerText="お客さま連絡先(宛名)" width="350"/>
                                                <mx:AdvancedDataGridColumn 
dataField="zipCode" headerText="郵便番号" width="200"/>
                                                <mx:AdvancedDataGridColumn 
dataField="prefecture" headerText="住所(都道府県)" width="300"/>
                                                <mx:AdvancedDataGridColumn 
dataField="city" headerText="住所(区市町村)" width="300"/>
                                                <mx:AdvancedDataGridColumn 
dataField="address" headerText="住所(残り)" width="200"/>
                                                <mx:AdvancedDataGridColumn 
dataField="phoneNumber" headerText="電話番号" width="200"/>
                                                <mx:AdvancedDataGridColumn 
dataField="faxNumber" headerText="FAX番号" width="200"/>
                                                <mx:AdvancedDataGridColumn 
dataField="templateId1" headerText="連絡票テンプレート(漢字)ID" width="300"/>
                                                <mx:AdvancedDataGridColumn 
dataField="templateId2" headerText="連絡票テンプレート(ひらがな)ID" width="300"/>
                                                <mx:AdvancedDataGridColumn 
dataField="templateId3" headerText="連絡票テンプレート(カタカナ)ID" width="300"/>
                                                <mx:AdvancedDataGridColumn 
dataField="templateId4" headerText="連絡票テンプレート(英語)ID" width="300"/>
                                                <mx:AdvancedDataGridColumn 
dataField="templateId5" headerText="連絡票テンプレート(混合)ID" width="300"/>
                                                <mx:AdvancedDataGridColumn 
dataField="multiFormFlagLabel" headerText="複票フラグ" width="200"/>
                                                <mx:AdvancedDataGridColumn 
dataField="kanjiFlagLabel" headerText="連絡要漢字フラグ" width="200"/>
                                                <mx:AdvancedDataGridColumn 
dataField="furiganaFlagLabel" headerText="連絡要フリガナフラグ" width="200"/>
                                                <mx:AdvancedDataGridColumn 
dataField="loanAmountFlagLabel" headerText="要ローン金額フラグ(連絡票)" width="300"/>
                                                <mx:AdvancedDataGridColumn 
dataField="insuranceAmountSumFlagLabel" headerText="要合計保険金額フラグ(連絡票)" 
width="300"/>
                                                <mx:AdvancedDataGridColumn 
dataField="insurancePlanId" headerText="プランID" width="200"/>
                                                <mx:AdvancedDataGridColumn 
dataField="partnerIdLabel" headerText="パートナー" width="200"/>
                                                <mx:AdvancedDataGridColumn 
dataField="userName" headerText="更新ユーザー" width="200"/>
                                                <mx:AdvancedDataGridColumn 
dataField="updatedDate" headerText="更新日時" width="200"/>
                                                <mx:AdvancedDataGridColumn 
dataField="deleteFlagLabel" headerText="削除" width="100" />
                                        </mx:columns>
                                </mx:AdvancedDataGrid>
                        </s:Panel>
                        <s:Label y="93" width="1900" height="45" fontSize="30" 
textAlign = "center" text="Contact Master" verticalAlign="top"/>
                </s:Group>
        </s:Scroller>
   </s:Application>
   ```

----------------------------------------------------------------
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