I am using ExtJS 7.1 and created a grid panel. I am not able to retrieve the selected row using the code Ext.getCmp("tempGrid").getSelectionModel().getSelection(), this line of code always returns length of 0.
Ext.getCmp("tempGrid").getSelectionModel().hasSelection(), this line of code always return false.
I am not sure what went wrong, would like to seek for advise or suggestion. Thank you
I have a tab panel as a main panel (mainPanel) then I attached/linked another panel (called tempGrid) Inside the tempGrid, I will put the grid, here is the grid configuration
items: {
xtype: 'gridpanel',
id: 'tempGrid',
header: false,
forceFit: true,
store: 'AStore',
columns: [{
xtype: 'gridcolumn',
dataIndex: 'colA',
text: 'A Column',
filter: {
type: 'string'
}
},
{
xtype: 'gridcolumn',
dataIndex: 'colB',
text: 'B Column',
filter: {
type: 'string'
}
}
],
plugins: [{
xtype: gridfilters ''
}],
dockedItems: [{
xtype: 'pagingtoolbar',
dock: 'bottom',
displayInfo: true,
inputItemWidth: 80,
store: 'AStore'
}]
}