开发者

Flex 4: DataGrid doesn't intercept event dispatched from custom itemRender

I'm trying to intercept an event dispatched by my custom renderer in this way:

this.owner.开发者_高级运维dispatchEvent(new ResultEvent("eventName",true,false,parameter));

Here is my grid:

<mx:DataGrid id="calendarGrid">
        <mx:columns>
          <mx:DataGridColumn headerText="header"
                             id="h"
                             sortable="false"
                             itemRenderer="myRenderer"/>
        </mx:columns>
</mx:DataGrid>

and here is how I add eventlistener to my grid:

calendarGrid.addEventListener("eventName", handlerFunction);

handlerFunction is never called. Please help...

SORRY MY FAULT... addEventListener was in the creationComplete function which (I don't know why) never fires. Now it works!


SORRY MY FAULT... addEventListener was in the creationComplete function wich (I don't know why) never fires. Now works!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜