On the following example, GridView's DisableSelection is set to true, but selection is not disabled.

Selection is just disabled when GridPanel's DisableSelection is set to true.


Thanks in advance.



Code:



Ext.onReady(function () {
Ext.create("Ext.grid.Panel", {
store: {
model: Ext.define(Ext.id(), {
extend: "Ext.data.Model",
fields: [{
name: "ID",
type: "string"
}, {
name: "Name",
type: "string"
}],
idProperty: "ID"
}),
proxy: {
type: 'memory'
},
data: [
[1, 'Name - 1'],
[2, 'Name - 2']
]
},
renderTo: "_pnl",
width: 400,
title: "Ext.Js",
columns: {
items: [{
width: 100,
dataIndex: "ID",
text: "ID"
}, {
width: 300,
dataIndex: "Name",
text: "Name"
}]
},
viewConfig: {
xtype: "gridview",
disableSelection: true
}
});
});