1. #1
    Sencha User
    Join Date
    Mar 2012
    Location
    Cary, NC
    Posts
    7
    Vote Rating
    0
    frank1russo is on a distinguished road

      0  

    Default Grid doesn't render at all when inside a hidden div

    Grid doesn't render at all when inside a hidden div


    I have a Grid that is rendered inside a div that is initially hidden. When the hidden div is set visible, the Grid does not render. Is there a property to set on the Grid that will allow it to render once it's in a visible container?

    Note: The hidden div is not controlled by ExtJS code. It is just plain html.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,404
    Vote Rating
    849
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Did you inspect the DOM, did it render and just have a height of zero?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Pittsburgh, PA
    Posts
    6
    Vote Rating
    0
    AEKirin is on a distinguished road

      0  

    Default


    I know this is an old thread but I am new to ExtJs and I am seeing this same behavior. I inspected it but am not sure which element you are referring to. There are so many extra "div's"

    Thanks

  4. #4
    Sencha User
    Join Date
    Mar 2012
    Location
    Cary, NC
    Posts
    7
    Vote Rating
    0
    frank1russo is on a distinguished road

      0  

    Default


    Wish I could help, but we never got a chance to resolve this. We were evaluating ExtJS but couldn't work out licensing issues.

  5. #5
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Pittsburgh, PA
    Posts
    6
    Vote Rating
    0
    AEKirin is on a distinguished road

      0  

    Default


    The problem lies in the fact that my application is a combination of MVC, jQuery and ExtJs. I resolved my issue by changing out some of the jQuery code for ExtJs code and the data now displays in the grid.

    Thanks

Thread Participants: 2