I am trying to develop an application using Ext JS. so far I have developed a viewport with border layout and I whave north region, south region done. in the center region i have multiple panel such 1. for search the data. 2. input the data task list (a form) and on the next panel to this I also would like to display the grid and has the dynamic behavior of item double click. I became successful to put everything together.
on the other hand I have defined the controller where it listens the item double click on the grid. eg:
this.control({
'viewport>userlist': {
itemdblclick: this. editUser,
},
.......
so if i put my userlist inside the viewport in the center region, along with two other panel the selection doesn't work. need suggestions.
following is the code i have:
launch : function() {
Ext.create('Ext.container.Viewport', {
layout : 'border',
autoScroll : true,
items : [{
region: 'north',
.......
},{
region: 'west',
..............
},{
region: 'center',
items:[{
xtype: 'panel',
..............
},{
xtype: 'panel',
............
},{
xtype: 'userlist'//this is what i like to have and my controller should respond the item click.
}]
}]
got stuck!!!! help would be highly Appreciated!!!