We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5253
    • 17 Posts
    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 smiley

    thanks a lot!
    Chris

      *there are no strangers - just friends who never met*