Hi Luo,

Usually preveting the event propogation is not a good practice since it
might add side effects that are hard to debug.....

Is ur Grid sortable ? If so try disable sorting and check whether you still
have blinking problem .......

if possible post ur requirement and custom renderer code ...so that we can
understand the problem quickly ...

Regards,
Sathish



On Sun, Nov 9, 2008 at 2:04 AM, luo <[EMAIL PROTECTED]> wrote:

>
> I ran into a problem that I'm still not sure what was happening today.
> I had something like this:
>
> public class MyHeader extends Canvas
> {
> …
> }
>
> …
>
> myDataGridColumn.headerRenderer = new ClassFactory( MyHeader );
>
> It worked, but upon mouse over or mouse move it would flicker like
> crazy. Extending Label or Button works no problem. I tried
> implementing various interfaces like IDataRenderer,
> IDropInListItemRenderer, and IListItemRenderer but still had the same
> results.
>
> A quick fix I found was to intercept and cancel those mouse events in
> my header class.
>
> addEventListener(MouseEvent.MOUSE_OVER, onMouseOver, true );
> addEventListener(MouseEvent.MOUSE_MOVE, onMouseOver, true );
> …
> protected function onMouseOver(event:MouseEvent) : void
> {
> event.preventDefault();
> }
>
> Now everything seems to work fine. But I'm still at a loss on why this
> happened in the first place and I worry my hack of a fix is the wrong
> way to do it. Has anyone successfully gotten a custom header renderer
> based on a container working?
>
>
> >
>


-- 
Warm Regards,
Sathish Kumar T

--~--~---------~--~----~------------~-------~--~----~
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