Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Location
    Pune
    Posts
    71
    Vote Rating
    0
    kislay.kishore is on a distinguished road

      0  

    Default Clearing the content of a panel, which is rendered on another panel

    Clearing the content of a panel, which is rendered on another panel


    I have two questions:
    1. How to clear the content which is rendered on rawDataContainer and chartContainer. My code for the panel (with border layout ) is as below.

    2. I am using 'rawDataContainer-body' and 'chartContainer-body' and passing it in renderTo of concered chart and grid panel. I found in firebug, that ExtJS creates such div (panelId-div) . This doesnt seems to best practice to me. Is there any other way to get these div Ids?

    Please suggest. Thanks!

    Code:
    var myPanel = Ext.create('Ext.panel.Panel', {
        height: 800,
        title: 'HomePage',
        layout: 'border',
     defaults: {
        collapsible: true,
        split: true,
        bodyStyle: 'padding:15px'
     },
        items: [{
            title: 'Raw Data',
      id: 'rawDataContainer',
            region: 'south',   
            xtype: 'panel',
      //layout: 'fit',
            height: 300,
            split: true,       
            margins: '0 5 5 5'
        },{
            title: 'Input',
            region:'west',
            xtype: 'panel',
            margins: '5 0 0 5',
            height: 500,
      width: 450,
            collapsible: true,  
      collapseDirection: 'top',
            id: 'inputContainer',
           layout: 'fit'
        },{
            title: 'Chart',
            region: 'center',    // center region is required, no width/height specified
            xtype: 'panel',
            layout: 'fit',
      height: 500,
            margins: '5 0 0 0',
      id: 'chartContainer',
        }],
        renderTo: 'pageDiv'
    });

  2. #2
    Sencha User
    Join Date
    Nov 2008
    Posts
    24
    Vote Rating
    0
    manoj123 is on a distinguished road

      0  

    Default


    How about the following code?

    Code:
    var rawDataPanel = Ext.getCmp('rawDataContainer'); rawDataPanel.removeAll();

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Location
    Pune
    Posts
    71
    Vote Rating
    0
    kislay.kishore is on a distinguished road

      0  

    Default


    It doesnt work. However, I didint get any error either...
    Quote Originally Posted by manoj123 View Post
    How about the following code?
    Code:
    var rawDataPanel = Ext.getCmp('rawDataContainer');rawDataPanel.removeAll();

  4. #4
    Sencha User
    Join Date
    Nov 2008
    Posts
    24
    Vote Rating
    0
    manoj123 is on a distinguished road

      0  

    Default


    Also add the following line at the end.

    Code:
    rawDataPanel.doLayout();
    If that doesn't work, can you try printing out rawDataPanel to console and check in firebug?

  5. #5
    Sencha User
    Join Date
    Jan 2012
    Location
    Pune
    Posts
    71
    Vote Rating
    0
    kislay.kishore is on a distinguished road

      0  

    Default


    It doesnt remove. On cosole, it does show two objects for rawDataPanel on firing the request for the second time.

    I went thru the code for removeAll() , wondering why this code is not working, although it seems to be correct!

  6. #6
    Sencha User
    Join Date
    Jan 2012
    Location
    Pune
    Posts
    71
    Vote Rating
    0
    kislay.kishore is on a distinguished road

      0  

    Default


    Did you read my second question? Can it cause the issue here?

Thread Participants: 1

Tags for this Thread