Hi Karthik, You are extending from Text control and at the bottom of the code you are writing:
this.addChild(testData); This is wrong because 'this' in this case is a Text which is a 'control' NOT a 'container' and controls can not have a child added to them. try extending your itemRenderer from HBox or VBox. HTH, -Ravi On Jun 2, 5:59 pm, Karthik K <[email protected]> wrote: > hi > > i have one datagrid and when i call this itemrenderer when i run it is not > displaying anything > > one thing is that when i use > > super.data = value; > > all datas will be displayed with out any separation of comma > > but i need data to be separated by comma and display all data > > public class DropTargetRenderer extends Text > { > > override public function set data(value:Object):void > { > var localStr:String=""; > if(value != null) > { > var > searchData:String=value[DataGridListData(listData).dataField]; > > var strArray:Array=searchData.split(","); > for(var i:int;i<strArray.length;i++) > { > var testData:Text=new Text(); > testData.text=strArray[i].toString(); > trace("testData.text",testData.text); > this.addChild(testData); > } > } > > } > } > > any idea > -- > Karthik.k > Mobile - +91-9894991640http://kkarthikresume.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

