hi Ravi

Thanks a lot

I forgot to see this

-- 
Karthik.k
Mobile - +91-9894991640

On Wed, Jun 3, 2009 at 12:43 PM, Ravi Mishra <ravi.achi...@gmail.com> wrote:

>
> 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 <cse.k.kart...@gmail.com> 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 flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to