Forum /
Ext JS Community Forums 4.x /
Ext: Discussion /
reconfigure grid and duplicated id error
reconfigure grid and duplicated id error
Hallo,
I created a grid with the code in bottom and all function without problems
Now I need to replace the grid's store. So I decided to use reconfigure (see the getSearch metod).
When I call this metod there is the error:
Registering duplicate id "ext-gen1177" with this manager.
Why ? Is there Solution ?
Code: getSearch
---------------------------------------------------------------------------
refs:[{
ref: 'aaaa',
selector: '#list'
}
],
getSearch: function()
{
var grid= this.getAaaa();
grid.store.removeAll();
grid.view.refresh();
var storeName= Ext.create('Store2');
storeName.load();
grid.reconfigure(store2);
},
--------------------------------------------------------------------------
Grid costruction into view
--------------------------------------------------------------------------
initComponent: function (){
var store = Ext.create('Store1');
store1.load();
var grid = new Ext.create('SIN.view.source.Grid',
{
border: true,
anchor: '100% 100%',
store: store1,
hideHeaders: true,
loadMask: false,
itemId: 'list',
columns: [
{
sortable: true,
dataIndex: 'name',
width: '60%',
}],
plugins: [{ptype: "rowexpander",
Cls: 'x-grid-row-expander',
rowBodyHiddenCls:false, //Blocca ad expanded in default
rowCollapsedCls:false, //Blocca ad expanded in default
rowBodyTpl: ['<div id="NestedFrm-{id}" ></div>'],
animCollapse: false,
esizable: {handles: 's'
}
}],
.........................................
});
this.items= [grid];
this.callParent(arguments);
}
-----------------------------------------------------------------------
Thanks
Post script: Identified the problem.
The problem is in the plugins, but I'dont know the solution: I can't remove the plugins.
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us