falcondot
23 Aug 2007, 9:14 PM
Hi,
Following is my code and I wanted to know how can I get the following event ---
when a panel is collapsed in the layouts example, there are two different events associated with that collapsed panel...one is when we click on the arrows image on the collapsed panel and the other is when we click on that panel any where other than that arrow image.
On both the events the panel is opened but the difference been that when we click on arrow image the panel is completely opened where as on other event panel just open for a short duration and than closes . I wanted to change this event to the first one , so that on both the clicks panel open completely .
Waiting for some reply.
<html>
<head>
<link rel="stylesheet" type="text/css" href="../../..\\IA-3.2\\interactiveavenues-war\\src\\main\\webapp\\css\\ext-all.css"/>
<script type="text/javascript" src="../../..\\IA-3.2\\interactiveavenues-war\\src\\main\\webapp\\js\\yui-utilities.js"></script>
<script type="text/javascript" src="../../..\\IA-3.2\\interactiveavenues-war\\src\\main\\webapp\\js\\ext-yui-adapter.js"></script>
<script type="text/javascript" src="../../..\\IA-3.2\\interactiveavenues-war\\src\\main\\webapp\\js\\ext-all-debug.js"></script>
</head>
<body>
<div id="north-div">North </div>
<div id="east-div">East </div>
<div id="west-div">West </div>
<div id="center-div"> Center</div>
</body>
<script>
var mainLayout = new Ext.BorderLayout(document.body, {
north: {
initialSize: 125
},
west: {
minSize: 250,animate: false, split: true, initialSize: 400, titlebar: true, collapsible: true
},
east: {initialSize: 20,titlebar: true ,collapsedTitle: 'Status', collapsible: false },
center: { titlebar: true, collapsible: true,autoScroll:true}
});
mainLayout.beginUpdate();
mainLayout.add('north', northPanel = new Ext.ContentPanel('north-div', {
fitToFrame: true
}));
mainLayout.add('east', eastPanel = new Ext.ContentPanel('east-div', {
fitToFrame: true
}));
mainLayout.add('west', westPanel = new Ext.ContentPanel('west-div', {
fitToFrame: true, closable: false, title: 'Filters',autoScroll: true,height:700
}));
mainLayout.add('center', centerPanel = new Ext.ContentPanel('center-div', {
fitToFrame: true, autoScroll: true, title: 'Reports Section'
}));
mainLayout.endUpdate();
</script>
</html>
Following is my code and I wanted to know how can I get the following event ---
when a panel is collapsed in the layouts example, there are two different events associated with that collapsed panel...one is when we click on the arrows image on the collapsed panel and the other is when we click on that panel any where other than that arrow image.
On both the events the panel is opened but the difference been that when we click on arrow image the panel is completely opened where as on other event panel just open for a short duration and than closes . I wanted to change this event to the first one , so that on both the clicks panel open completely .
Waiting for some reply.
<html>
<head>
<link rel="stylesheet" type="text/css" href="../../..\\IA-3.2\\interactiveavenues-war\\src\\main\\webapp\\css\\ext-all.css"/>
<script type="text/javascript" src="../../..\\IA-3.2\\interactiveavenues-war\\src\\main\\webapp\\js\\yui-utilities.js"></script>
<script type="text/javascript" src="../../..\\IA-3.2\\interactiveavenues-war\\src\\main\\webapp\\js\\ext-yui-adapter.js"></script>
<script type="text/javascript" src="../../..\\IA-3.2\\interactiveavenues-war\\src\\main\\webapp\\js\\ext-all-debug.js"></script>
</head>
<body>
<div id="north-div">North </div>
<div id="east-div">East </div>
<div id="west-div">West </div>
<div id="center-div"> Center</div>
</body>
<script>
var mainLayout = new Ext.BorderLayout(document.body, {
north: {
initialSize: 125
},
west: {
minSize: 250,animate: false, split: true, initialSize: 400, titlebar: true, collapsible: true
},
east: {initialSize: 20,titlebar: true ,collapsedTitle: 'Status', collapsible: false },
center: { titlebar: true, collapsible: true,autoScroll:true}
});
mainLayout.beginUpdate();
mainLayout.add('north', northPanel = new Ext.ContentPanel('north-div', {
fitToFrame: true
}));
mainLayout.add('east', eastPanel = new Ext.ContentPanel('east-div', {
fitToFrame: true
}));
mainLayout.add('west', westPanel = new Ext.ContentPanel('west-div', {
fitToFrame: true, closable: false, title: 'Filters',autoScroll: true,height:700
}));
mainLayout.add('center', centerPanel = new Ext.ContentPanel('center-div', {
fitToFrame: true, autoScroll: true, title: 'Reports Section'
}));
mainLayout.endUpdate();
</script>
</html>