PDA

View Full Version : Why does clicking icon in grid panel actioncolumn not select the row?



xjscrafter
23 Jan 2014, 9:42 PM
I have a grid panel with an actioncolumn.

There is an icon in the actioncolumn, and its click handler works fine.

But when I click the icon, in the click handler I want to access the selected row, but it seems no row is selected.

Is this expected? Do I need to manually set the selected row when an actioncolumn icon is clicked?

xjscrafter
23 Jan 2014, 9:49 PM
This seems to work, but why does the row not get selected when that row's actioncolumn icon gets clicked? Doesn't make sense.


grid.getSelectionModel().select(record);

evant
23 Jan 2014, 10:21 PM
http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.grid.column.Action-cfg-stopSelection

xjscrafter
23 Jan 2014, 10:29 PM
Thanks Evan. Default is true, so guess there is some rationale to that.