Hybrid View
-
26 May 2011 8:26 PM #1
Little Help with first air app. Cannot put a gridpanel
Little Help with first air app. Cannot put a gridpanel
Hi everyone. Im new in ext.air and im trying to migrate my app (extjs 3.3 running in browser) to a desktop app with adobe air.
I setup aptana and i have working a simple window with a grid. Works great, but when i add a grid, i have many errors in the console and the window is showed but i cannot move or resize...
Here's my working code for Window and panel:
And here's the code i insert to add a grid:Code:Ext.onReady(function() { new Ext.air.Window({ win: window.nativeWindow, width: 1024, height: 768, layout: 'fit', title: 'Ventana de Prueba', items:[ { xtype: 'panel', title: 'My Panel', layout: 'fit', } ] }); });
Thanks, and i hope you can help me... and understand my english... jejeCode:Ext.onReady(function() { new Ext.air.Window({ win: window.nativeWindow, width: 1024, height: 768, layout: 'fit', title: 'Ventana de Prueba', items:[ { xtype: 'panel', title: 'My Panel', width: 100, height: 350, layout: 'fit', items: [ { xtype: 'grid', title: 'My Grid', } ] } ] }); });
-
27 May 2011 1:18 AM #2
I don't see anything on your attached image... it's to small.
But two questions:- Why do you put a fit layout in a fit layout in a fit layout...?
- Why does your container panel for your grid has a width and height property while it is in a fit layout?
Add the grid directly to your window if you want it to fit the whole window. A GridPanel is a Panel! No need to overnest them.Programming today is a race between software engineers striving to build bigger and better іdiot-proof programs, and the universe striving to produce bigger and better idiots. So far, the universe is winning. (Rick Cook)
Enhanced ExtJS adapter for Adobe AIR
-
27 May 2011 9:46 AM #3
I put only this:
And still with errors, and the window is freezed:Code:Ext.onReady(function() { new Ext.air.Window({ win: window.nativeWindow, width: 1024, height: 768, layout: 'fit', title: 'Ventana de Prueba', items:[ { xtype: 'grid', title: 'My Grid', } ] }); });
https://lh5.googleusercontent.com/-v...0/Captura3.JPG
-
27 May 2011 3:23 PM #4
I just need know how to put a blank grid into may air window, because "xtype: 'grid'" seems doesn't work... Please help me

-
30 May 2011 10:04 AM #5
Define a ColumnModel, Store etc.
Please use ext-all-debug, ext-air-debug etc. And the debug function of aptana. It will help you a lot.Programming today is a race between software engineers striving to build bigger and better іdiot-proof programs, and the universe striving to produce bigger and better idiots. So far, the universe is winning. (Rick Cook)
Enhanced ExtJS adapter for Adobe AIR


Reply With Quote