开发者

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

开发者 https://www.devze.com 2023-02-13 23:05 出处:网络
I\'m trying to intercept an event dispatched by my custom renderer in this way: this.owner.开发者_高级运维dispatchEvent(new ResultEvent("eventName",true,false,parameter));

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

精彩评论

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