1. #1
    Sencha User
    Join Date
    Mar 2011
    Location
    Argentina
    Posts
    36
    Vote Rating
    0
    gustavo21 is on a distinguished road

      0  

    Default 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:

    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',
                    }
                  ]            
        });
    });
    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',
                    width: 100,
                    height: 350,
                    layout: 'fit',
                    items: [
                        {
                            xtype: 'grid',
                            title: 'My Grid',
                            
                        }
                    ]
                }
            ]
                          
        });
    });
    Thanks, and i hope you can help me... and understand my english... jeje
    Attached Images

  2. #2
    Sencha User makana's Avatar
    Join Date
    Apr 2008
    Location
    Dresden, Germany
    Posts
    526
    Vote Rating
    17
    makana has a spectacular aura about makana has a spectacular aura about

      0  

    Default


    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

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Location
    Argentina
    Posts
    36
    Vote Rating
    0
    gustavo21 is on a distinguished road

      0  

    Default


    I put only this:

    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',
                                                  
                }
            ]
                          
        });
    });
    And still with errors, and the window is freezed:

    https://lh5.googleusercontent.com/-v...0/Captura3.JPG
    Attached Images

  4. #4
    Sencha User
    Join Date
    Mar 2011
    Location
    Argentina
    Posts
    36
    Vote Rating
    0
    gustavo21 is on a distinguished road

      0  

    Default


    I just need know how to put a blank grid into may air window, because "xtype: 'grid'" seems doesn't work... Please help me

  5. #5
    Sencha User makana's Avatar
    Join Date
    Apr 2008
    Location
    Dresden, Germany
    Posts
    526
    Vote Rating
    17
    makana has a spectacular aura about makana has a spectacular aura about

      0  

    Default


    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

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar