hi ravi

thank you

i found the solution

i did not clear the data when it is coming in .


-- 
Karthik.k
Mobile - +91-9894991640
http://kkarthikresume.blogspot.com/

On Mon, May 25, 2009 at 1:06 PM, Ravi Mishra <[email protected]> wrote:

>
> I think u can use datagrid as itemrenderer for this purpose.
> The array which u are populating by the split can be used as a
> dataprovider for the itemrenderer datagrid.
>
> HTH,
>
> -Ravi
>
> On May 25, 11:43 am, Karthik K <[email protected]> wrote:
> > hi ravi
> >
> > below is my requirement
> >
> > i have a datagrid and itemrenderer
> >
> > inside that itemrenderer i have data separated with commas
> > it is getting displayed like paragraph
> > but i need to split with comma and display one by one
> > I did the same separated by comma and displayed one below the other
> > it is getting displayed correctly
> > but when i scroll up and down, datas getting shuffled first data in last
> row
> > when i scroll
> >
> > below is the itemrenderer i are using
> >
> > override public function set data(value:Object):void
> >     {
> >         super.data=value;
> >         textData.text=String(data[_listData.dataField]);
> >         textData.height=50;
> >         textData.width=160
> >         arr  = textData.text.split(",");
> >         var box:VBox=new VBox();
> >         for(var i:int=0;i<arr.length;i++)
> >         {
> >             var text:Text = new Text();
> >             text.text = arr[i].toString();
> >                box.addChild(text);
> >                this.addChild(box);
> >            }
> >     }
> >
> > i am splitting data, adding to box, it is displaying correctly but when i
> do
> > scrolling some thing strange occurs like
> > data shuffling what is the problem
> >
> > as per the requirement i tried in above way i did not find any solution
> >
> > so, that why i asked datagrid inside another datagrid using action
> script(as
> > i develop application in action script )
> >
> > so that the items which is coming with comma , i can put in array
> collection
> > and display in inner datagrid as itemrenderer
> >
> > please help
> >
> > --
> > Karthik.k
> > Mobile - +91-9894991640http://kkarthikresume.blogspot.com/
> >
> > On Mon, May 25, 2009 at 12:06 PM, Ravi Mishra <[email protected]
> >wrote:
> >
> >
> >
> > > Hi Karthik,
> >
> > > Can u pls elaborate the rqrment a little more?
> >
> > > -Ravi
> >
> > > On May 25, 11:19 am, Karthik K <[email protected]> wrote:
> > > > hi guys
> >
> > > > is there any application where datagrid used as component inside
> another
> > > > datagrid in Action script
> > > > i got in mxml but can i get in Action Script
> >
> > > > --
> > > > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to