1. #1
    Ext User
    Join Date
    Jul 2010
    Posts
    1
    Vote Rating
    0
    Caution I Am Hot is on a distinguished road

      0  

    Cool Render Viewport to Div-Container

    Render Viewport to Div-Container


    Hello,

    I am new to Ext and I startet to create a Viewport.

    I found the viewport automatically renders to the document body.

    But I want to build some HTML around the ExtJs-Application (Viewport) so I need a way to render the viewport explicitly to a div-Container? How can this be achived?

    Thank you very much in advance!!

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,502
    Vote Rating
    48
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Use Container

  3. #3
    Sencha User prijithkr's Avatar
    Join Date
    Jun 2012
    Posts
    54
    Vote Rating
    6
    prijithkr is on a distinguished road

      1  

    Default Problem with Resizing... In Container

    Problem with Resizing... In Container


    I am using a Gridpanel, viewport supports automatic resize, but container doesnt support it,
    but i am forced to use container as I have to use the Header and Footer for my website,
    So how to implement the automatic resize of the grid, on window resize in a container

  4. #4
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default try render method

    try render method


    Hi

    did you try render method

    Code:
    render( div container );
    Regards
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  5. #5
    Sencha User darthwes's Avatar
    Join Date
    Mar 2010
    Posts
    633
    Vote Rating
    -11
    darthwes can only hope to improve

      -1  

    Default


    If you need to support Chrome it's best to go ahead and dump ExtJS as they are no longer supporting Chrome (see http://www.sencha.com/forum/showthre...-Google-Chrome and https://code.google.com/p/chromium/i...tail?id=124816).
    Wes

  6. #6
    Sencha Premium Member
    Join Date
    Aug 2012
    Location
    Estonia
    Posts
    198
    Vote Rating
    0
    mmuruev is on a distinguished road

      0  

    Question


    Where exactly it should be?
    I have similar problem. Make render Ext.app to div I can't find how it possible do?
    PHP Code:
            launch: function () {
                
    Ext.define('Container', {
                    
    extend'Ext.container.Container',
                    
    layout'anchor',
                    
    renderTo'grid',

                    
    items: [
                        {
                            
    title'Hello Ext',
                            
    html this
                        
    }
                    ]
                });

                
    //this.getView('Ext.container.Container').create(); 
    Nor First nor second(commented) way can't help with it.

Similar Threads

  1. Styling Container Div (ComboBox)
    By fsa3 in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 28 May 2009, 6:17 AM
  2. Using a slider to scroll a div container
    By cnelissen in forum Community Discussion
    Replies: 3
    Last Post: 2 Feb 2009, 12:31 PM
  3. Sizing issues when using gxt in a div container
    By googelybear in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 22 Nov 2008, 8:25 AM
  4. how to get grid object from the container div.
    By sayeed in forum Community Discussion
    Replies: 7
    Last Post: 26 Dec 2006, 7:43 PM
  5. getting grid data if we know container div
    By sayeed in forum Community Discussion
    Replies: 2
    Last Post: 26 Dec 2006, 3:51 AM

Thread Participants: 5