开发者

Can't make navigable rendered component

开发者 https://www.devze.com 2022-12-11 18:57 出处:网络
I have the next component, which is substituted into the data grid as rendered item. <mx:VBox xmlns:mx=\"http://ww开发者_C百科w.adobe.com/2006/mxml\" click=\"navigateToURL(new URLRequest(\'{data.G

I have the next component, which is substituted into the data grid as rendered item.

<mx:VBox xmlns:mx="http://ww开发者_C百科w.adobe.com/2006/mxml" click="navigateToURL(new URLRequest('{data.GetLink()}'), '_blank');">

The problem with click event, it doesn't work.

How correctly to make navigation VBox that url is substituted from the dataProvider collection?

Thank you!


The click event isn't getting called at all? It should. Try putting a trace() statement in there.

Once you see the trace() statement, put a hard-coded url in there for testing: click="navigateToURL(new URLRequest('http://google.com'), '_blank');"

After that, change GetLink() to a property in the 'data' object: like data.link


I may be wrong but do you have a click event already registered with the datagrid? If so then the event from the child will be canceled out...

0

精彩评论

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