开发者

Flex datagrid tab to checkbox column

Context: I have a data grid where the following h开发者_开发问答as been implemented. tabbing through each column in a single row and creating a new row when tabbing from the last column.

The last column in my datagrid is now a checkbox. I set the 'editable' to false as shown below (since we don't want editable text to be shown when user clicks on/tabs to checkbox.

Problem: When I tab through the columns of a given row, I cannot tab to the checkbox column and therefore cannot use the space bar to toggle between checked/unchecked. The user is forced to use the mouse to toggle the check box.

Question: How do I let user tab to the checkbox column, and press spacebar to toggle between checked and unchecked?


you can override the selected property for the checkbox

override public set selected(value:Boolean):void
{
    // check for spacebar or click
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜