开发者

show focus on Canvas when click on linkbutton in flex

In my application one Datagrid and down one Canvas is there.

I have a DataGrid with Data. When i select the data in the Data grid, the focus is displayed in the canvas. In the canvas i have a chart component.so when i select the link data on the datagrid the focus should be in the chart component in the canvas. Can any one pls h开发者_JAVA技巧elp me out, how to do in flex.


You can attach an event listener to listen for a click on the datagrid and then fire off the setFocus method on the chart to set the focus on the chart.

dataGrid.addEventListener(MouseEvent.CLICK, function():void { chart.setFocus() });
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜