Results 1 to 9 of 9

Thread: Grid disappearing....

  1. #1

    Default Grid disappearing....

    Hi ,
    My Grid is disappearing when i click for it couple of times. Grid is in a FormPanel. Can anyone plz tell me what makes it to work weird like this.

  2. #2

    Default

    Hi,No one to reply..Any small help can be highly appreciated.

  3. #3
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364

    Default

    how about posting a reproducable test case? OS, browser, etc? You expect help, yet you only minimally describe the problem.

  4. #4

    Default

    HI [email protected],
    Just waiting for someone's reply.This is the code i am using.This is inside another Panel. i need to call it with an id every time. First time "gridForm" working fine but from second onwards its disappearing.


    var gridForm = new Ext.FormPanel({
    id: 'OrderLineDetails-form',
    border:false,
    title: 'OrderLine Details',
    //bodyStyle:'padding:5px',
    // Specifies that the items will now be arranged in columns
    items: [{
    layout: 'fit',
    items: {
    xtype: 'grid',
    vireconfig: {forceFit: true},
    enableColumnHide: false,
    autoHeight: true,
    id:'orderlinegrid',
    itemId :'orderlinegrid',
    store:this.store,
    cm: colModel,
    smelectBoxModel,
    tbar: Tbar,
    height: 200,
    title:'OrderLine Details',
    border: true,
    listeners: {
    render: function(g) {
    g.getSelectionModel().selectRow(0);
    },delay:10
    }
    }
    },typeP]
    });

    Ext.apply(this,{
    title: 'OrderlineView',
    region:'center',
    layout: 'fit',
    plain:true,
    collapsible: true,
    layout:'form',
    layoutOnTabChange : true,
    deferredRender :true,
    border:false,
    collapsible:true,
    items : [viewOrderLineDetails,gridForm],
    closeAction:'close'
    });

    Thanqs in advance.



  5. #5
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    How is it disappearing? Look at the DOM structure to see what's happened to it. Is it display:none? Is it zero size? Is it positioned off screen?

    YOU need to do some work.

  6. #6

    Default

    Hi Animal..I mean its becoming zero size..DOM showing its a object ..css showing that its taking ".x-panel-body-noheader, .x-panel-mc .x-panel-body" class. Still not getting what causing it. I used TabPanels with only grid's inside which working fine. But this multiple panel page creating the bug..Some more clue to get it..

  7. #7
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    You do not have it in a sizing layout

    Think about how you'd like to size and arrange the items, and then use the appropriate layout with the appropriate extra layout hints in the child Components

  8. #8

    Default

    Hey Animal, Thanks for that. I'm asked to follow that layout which is given in examples as "Binding a Grid to a Form". As i told you its working fine with Grid Panel.

  9. #9
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    Quote Originally Posted by Rammynampati View Post
    Hey Animal, Thanks for that. I'm asked to follow that layout which is given in examples as "Binding a Grid to a Form". As i told you its working fine with Grid Panel.
    Working fine? Ok that's good. Thread closed then.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •