I believe this is a case of Flash Builder not supporting this new type of
ItemRenderer as it was a recently added feature.
Although, in the examples, I see this:
<exp:MobileGridColumn headerText="S" dataField="status" width="30">
<exp:itemRenderer>
<fx:Component>
<exp:MobileGridBitmapCellRenderer
iconFunction="{outerDocument.getMDPIStatusIcon}"/>
</fx:Component>
</exp:itemRenderer>
</exp:MobileGridColumn>
Have you tried this?
A better option is to create it in pure AS3 like this:
public class MyActionButtonPartRenderer extends Button implements
IMobileGridCellRenderer { private var _data:Object; public function
MyActionButtonPartRenderer() { super(); label = "Go"; height=30;
addEventListener( MouseEvent.CLICK, onClick); } public function set
styleProvider(value:IStyleClient):void { } public function get
canSetContentWidth():Boolean { return true; } public function get
canSetContentHeight():Boolean { return false; } public function set
cssStyleName(value:String):void { } public function get data():Object {
return _data; } public function set data(value:Object):void { _data =
value; } private function onClick(event:MouseEvent):void {
Alert.show("Click on: " + data.Name, "Action"); } } }
Thanks,
Om
On Thu, Oct 20, 2016 at 4:42 PM, bilbosax <[email protected]> wrote:
> If I try and create an inline itemRenderer, I am given the option to
> create a
> ns:MobileGridBitmapsCellRenderer, but if I try and create a tag in a
> custom
> itemRenderer that starts with ns:MobileGridBitmapsCellRenderer, it is not
> accepted???
>
>
>
> --
> View this message in context: http://apache-flex-users.
> 2333346.n4.nabble.com/How-to-Create-A-MobilGrid-
> ItemRenderer-tp13883p13884.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>