Hi,
This is happening because itemRenderer creates it instance every time
the view is refreshed so the best way to tackle and set values is to
write by overrriding the data property of the renderer.
eg:
override public function set data(value:object):void
{
// your code --- it only called when the instance created in the
view or any change related to value.
}
- Sudipta
On May 15, 6:37 pm, Amokrane <[email protected]> wrote:
> Hi all,
>
> this is true, it will reuse renderer instances (with a pool
> mechanism),
>
> Actually I'm facing another problem,
>
> I want to use a renderer to display a Highlight effect when ever a
> value changes,
> for only visible rows in the grid. For that I'm using onValueCommit
> event.
>
> My problem is that when you scroll the grid, all the updates that have
> been made on invisible rows are triggering highlight effects.
>
> Does anyone have an idea,
> Amokrane,
>
> On 7 avr, 14:21, Ravi Mishra <[email protected]> wrote:
>
>
>
> > Hi Neeraj,
>
> > This will not create all the 20 * 10000 instances of label but it will
> > create only for the items which are visible at that instance on the
> > screen.
>
> > -Ravi
>
> > On Apr 7, 3:12 pm, neeraj <[email protected]> wrote:
>
> > > Hi ,
>
> > > I haveDatagridin which i want to display text with truncation , so I
> > > am rendering label using itemRender .
> > > Suppose MyDatagridcontain 10000 row and 20 column means
> > > 10000 * 20 = 20000 instance of Label will create .
>
> > > So Is there any other way to display text with truncation in any
> > > component likeDatagrid, List , ComboBox ?
>
> > > Thanks
> > > Neeraj- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---