Note that there are some explanatory texts on larger screens.

plurals
  1. POExt - Dynamic Columns triggered by an event
    primarykey
    data
    text
    <p>I have a Viewport and in Center region I have a tabpanel.Each tabpanel contain columns, and each column has panel with 3-4 items. Something like...</p> <p>Column A(Week 1) Column B(Week 2)<br> Item A1 Item B1 <br> </p> <p>Item A2 item B2</p> <p>I want these columns to be dynamic. If columns were a week of calendar then once the month changes,the columns also change.I also have a small calendar in the east region of this viewport and I am planning to trigger the column change using that calendar.</p> <p>Here is the code...</p> <pre><code>&lt;title&gt;Test&lt;/title&gt; &lt;link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" /&gt; &lt;!-- Tabs Example Files --&gt; &lt;link rel="stylesheet" type="text/css" href="tabs-example.css" /&gt; &lt;!-- Common Styles for the examples --&gt; &lt;link rel="stylesheet" type="text/css" href="../shared/examples.css" /&gt; &lt;link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css"/&gt; &lt;!-- GC --&gt; &lt;!-- LIBS --&gt; &lt;script type="text/javascript" src="../../adapter/ext/ext-base.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="../../adapter/ext/ext-all-debug.js"&gt;&lt;/script&gt; &lt;!-- ENDLIBS --&gt; &lt;script type="text/javascript" src="../../ext-all.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="../../ext_main.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; Ext.onReady(function() { Ext.QuickTips.init(); var store = new Ext.data.Store({ data: [ ], reader: new Ext.data.ArrayReader({id:'id'}, [ 'id', 'St', 'GD', 'DC', 'T', {name: 'DP', type: 'date', dateFormat: 'Y-m-d'} ]) }); var viewport = new Ext.Viewport({ layout: 'border', renderTo: Ext.getBody(), items: [{ region: 'north', title: '', height: 24, xtype: 'toolbar', items: [{ xtype: 'tbspacer' },{ xtype: 'tbbutton', text: '', handler: function(btn){ btn.disable(); } },{ xtype: 'tbfill' }, { xtype: 'button', text: '&lt;b&gt;&lt;/b&gt;', menu: [ ]} ] },{ region: 'west', xtype: 'panel', title: 'Calendar', collapsible: true, split: true, width: 280, html:'&lt;object data=http://localhost:8084/TM/extjs/examples/layout/test.html width="400" height="220"&gt; \n\ &lt;embed src=http://localhost:8084/TM/extjs/examples/layout/test.html width="400" height="220"&gt; &lt;/embed&gt;&lt;/object&gt;' },{ region: 'center', split:true, xtype: 'tabpanel', activeTab: 0, items: [ { title: ' ', layout:'column', autoScroll:true, items:[{ columnWidth:.13, title: '2/21', xtype: 'panel', collapsible: true, items: [{ title: '', height: 100, dataIndex: '', rowspan:1, width:200}, { title: '', height: 100, rowspan:1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 } ]} ] },{ columnWidth:.13, title: '3/14', xtype: 'panel', collapsible: true, items: [{ title: '', height: 100, rowspan:1, width:200}, { title: '', height: 100, rowspan:1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 } ] } ] } ] }, { title: '', layout:'column', autoScroll:true, items:[{ columnWidth:.13, title: '2/21', xtype: 'panel', collapsible: true, items: [{ title: '', height: 100, rowspan:1, width:200}, { title: '', height: 100, rowspan:1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 } ] } ] } ,{ title: '3/07', columnWidth:.13, collapsible: true, items: [{ title: '', height: 100, rowspan:1, width:200}, { title: '', height: 100, rowspan:1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 } ] },{ title: '3/14', columnWidth:.13, collapsible: true, items: [{ title: '', height: 100, rowspan:1, width:200}, { title: '', height: 100, rowspan:1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 } ] }, { title: '', layout:'column', autoScroll:true, items:[{ columnWidth:.13, title: '2/21', xtype: 'panel', collapsible: true, items: [{ title: '', height: 100, rowspan:1, width:200}, { title: ' ', height: 100, rowspan:1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 } ]},{ columnWidth:.13, title: '2/28', xtype: 'panel', collapsible: true, items: [{ title: '', height: 100, rowspan:1, width:200}, { title: ' ', height: 100, rowspan:1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 },{ title: '', height: 100, rowspan: 1, width:200 } ] } ]}, { region: 'east' }, { region:'south', height: 200 }); &lt;/script&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload