nihavend opened a new issue #868: URL: https://github.com/apache/royale-asjs/issues/868
The sample has three columns. The second columns shows that the buttons are correctly placed while it is not the same for the third column. The manage column contains the images, they should be placed at the center of the grid cell. Here is the image used in source, you can use any one you have.  ``` <?xml version="1.0" encoding="latin5" ?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.apache.org/royale/spark" xmlns:mx="library://ns.apache.org/royale/mx" height="100%" width="100%" currentState="anaSayfaState" xmlns:mtest="main.mtest.*" creationComplete="group1_creationCompleteHandler(event)"> <fx:Script> <![CDATA[ import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn; import mx.collections.ArrayCollection; import mx.events.FlexEvent; import mx.collections.XMLListCollection; [Bindable] public var jobListXmlCollection:XMLListCollection = new XMLListCollection(); public var jobListXml:XML = <jobList netTreeEnablable="false" netTreeDisablable="false" > <genericJob Id="1" groupId="iot-insights"> <baseJobInfos> <jsName>SENSORDATA_HOURLY</jsName> </baseJobInfos> <visualParams> <statu>0</statu> <commandabilityParams> <isPausable>true</isPausable> <isResumable>false</isResumable> <isRetryable>false</isRetryable> <isSkipable>false</isSkipable> <isStartable>true</isStartable> <isStopable>false</isStopable> <isSuccessable>false</isSuccessable> <isDisablable>true</isDisablable> <isEnablable>true</isEnablable> </commandabilityParams> </visualParams> </genericJob> </jobList>; protected function group1_creationCompleteHandler(event:FlexEvent):void { jobListXmlCollection.source = jobListXml.children(); } public function getJsName(item:XML, column:AdvancedDataGridColumn):String { return item.baseJobInfos.jsName; } ]]> </fx:Script> <mx:Panel title="AdvancedDataGrid Control Example" paddingBottom="10" paddingTop="10" paddingLeft="10" paddingRight="10" height="200" width="350"> <mx:AdvancedDataGrid id="pinaraJobList" width="100%" height="100%" dataProvider="{jobListXmlCollection}"> <mx:columns> <mx:AdvancedDataGridColumn labelFunction="getJsName" headerText="Job Name" width="150"/> <mx:AdvancedDataGridColumn headerText="Manage" width="150"> <mx:itemRenderer> <fx:Component> <s:MXAdvancedDataGridItemRenderer> <s:Group horizontalCenter="0"> <s:layout> <s:HorizontalLayout /> </s:layout> <s:Button id="button1" width="23" label="B-1"/> <s:Button id="button2" width="23" label="B-2"/> <s:Button id="button3" width="23" label="B-3"/> <s:Button id="button4" width="23" label="B-4"/> </s:Group> </s:MXAdvancedDataGridItemRenderer> </fx:Component> </mx:itemRenderer> </mx:AdvancedDataGridColumn> <mx:AdvancedDataGridColumn headerText="Manage" width="150"> <mx:itemRenderer> <fx:Component> <s:MXAdvancedDataGridItemRenderer> <s:Group horizontalCenter="0"> <s:layout> <s:HorizontalLayout /> </s:layout> <s:Image id="pauseJob" source="images/pauseJob.jpg" width="23" height="23" includeInLayout="{(data as XML).visualParams.commandabilityParams.isPausable == true}" visible="{(data as XML).visualParams.commandabilityParams.isPausable == true}" buttonMode="true"/> <s:Image id="resumeJob" source="images/pauseJob.jpg" width="23" height="23" includeInLayout="{(data as XML).visualParams.commandabilityParams.isResumable == true}" visible="{(data as XML).visualParams.commandabilityParams.isResumable == true}" buttonMode="true"/> <s:Image id="retryJob" source="images/pauseJob.jpg" width="23" height="23" includeInLayout="{(data as XML).visualParams.commandabilityParams.isRetryable == true}" visible="{(data as XML).visualParams.commandabilityParams.isRetryable == true}" buttonMode="true"/> <s:Image id="skipJob" source="images/pauseJob.jpg" width="23" height="23" includeInLayout="{(data as XML).visualParams.commandabilityParams.isSkipable == true}" visible="{(data as XML).visualParams.commandabilityParams.isSkipable == true}" buttonMode="true"/> <s:Image id="startJob" source="images/pauseJob.jpg" width="23" height="23" includeInLayout="{(data as XML).visualParams.commandabilityParams.isStartable == true}" visible="{(data as XML).visualParams.commandabilityParams.isStartable == true}" buttonMode="true"/> <s:Image id="stopJob" source="images/pauseJob.jpg" width="23" height="23" includeInLayout="{(data as XML).visualParams.commandabilityParams.isStopable == true}" visible="{(data as XML).visualParams.commandabilityParams.isStopable == true}" buttonMode="true"/> <s:Image id="setSuccessJob" source="images/pauseJob.jpg" width="23" height="23" includeInLayout="{(data as XML).visualParams.commandabilityParams.isSuccessable == true}" visible="{(data as XML).visualParams.commandabilityParams.isSuccessable == true}" buttonMode="true" mouseChildren="false"/> <s:Image id="disableJob" source="images/pauseJob.jpg" width="23" height="23" includeInLayout="{(data as XML).visualParams.commandabilityParams.isDisablable == true}" visible="{(data as XML).visualParams.commandabilityParams.isDisablable == true}" buttonMode="true"/> <s:Image id="enableJob" source="images/pauseJob.jpg" width="23" height="23" includeInLayout="{(data as XML).visualParams.commandabilityParams.isEnablable == true}" visible="{(data as XML).visualParams.commandabilityParams.isEnablable == true}" buttonMode="true"/> </s:Group> </s:MXAdvancedDataGridItemRenderer> </fx:Component> </mx:itemRenderer> </mx:AdvancedDataGridColumn> </mx:columns> </mx:AdvancedDataGrid> </mx:Panel> </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]
