hi everyone,
I'm new to extJS and creating CMPs...
I have a grid based on the "doodles" example. The values (e.g. text) are much more than a grid cell can display. My ideas was to open a popup window by click on a cell to display all the data.
My code so far:
grid config
Ext.applyIf(config,{
...
,listeners: {
cellclick: function(grid, rowIndex, colIndex) {
var record = grid.getStore().getAt(rowIndex);
this.eInfo(record);
}
}
popup window function
,eInfo: function(record) {
console.log(record.data);
if(!this.mywin)
{
this.mywin = new Ext.Window({
width: 500
,title: "my Popup"
,height: 500
,items: new Ext.menu.TextItem({
html: "<p>Host: "+record.data.host+"</p>"
})
});
}else{
this.mywin.setValues(record);
}
this.mywin.show();
}
the popup opens only for the first time. A second click on a row will fail (this.mywin.setValues is not a function).
I can't imagine that there's no way to put a record set in a popup. Does anyone have an idea, a solution, or a hint?
help would be really appreciated
thanks a lot!
Chris