开发者

show focus on Canvas when click on linkbutton in flex

开发者 https://www.devze.com 2023-01-20 23:50 出处:网络
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 c

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

精彩评论

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