﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Coolite Forums / Coolite Toolkit / Help  / [SOLVED] Programmatically show/hide borderlayout regions / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Coolite Forums</description><link>http://coolite.com/forums/</link><webMaster>do-not-reply@coolite.com</webMaster><lastBuildDate>Tue, 06 Jan 2009 04:56:31 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: [SOLVED] Programmatically show/hide borderlayout regions</title><link>http://coolite.com/forums/Topic808-4-1.aspx</link><description>Hi Zarand,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The main thread tracking the status release of v0.6 is &lt;a href="http://www.coolite.com/forums/Topic1224-7-1.aspx"&gt;http://www.coolite.com/forums/Topic1224-7-1.aspx&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Hope this helps.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</description><pubDate>Sun, 07 Sep 2008 04:02:24 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: [SOLVED] Programmatically show/hide borderlayout regions</title><link>http://coolite.com/forums/Topic808-4-1.aspx</link><description> When will &lt;span&gt;&lt;span&gt;&lt;span id="ctl10_ctlTopic"&gt;&lt;span id="ctl10_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl17_lblFullMessage"&gt;&amp;lt;ext:Menu&amp;gt; be available ?&lt;br&gt;&lt;br&gt;Thank You.&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</description><pubDate>Tue, 29 Jul 2008 11:39:39 GMT</pubDate><dc:creator>Zarzand</dc:creator></item><item><title>RE: [SOLVED] Programmatically show/hide borderlayout regions</title><link>http://coolite.com/forums/Topic808-4-1.aspx</link><description>Thanks&lt;span&gt;&lt;span&gt;&lt;span id="ctl10_ctlTopic"&gt; Agha!!!!  I have originally tried putting the menu outside the viewport and it worked fine EXCEPT I also had a header in the north region.  If I put both the header and menu outside the viewport, my header won't show but my menu will.  It looked like the menu was over the header.  Sooooo frustrating.  But I used your approach and wrapped everything inside a div with position:absolute and everything is working now.  Thanks so much again!&lt;br&gt;&lt;br&gt;geoffrey, I have tried setting the z-index of the menu to 10000000 but it still didn't work.  I do believe Telerik render their menu already with absolute positioning or something else weird.  But I am glad Agha's method worked.  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span id="ctl10_ctlTopic"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;</description><pubDate>Tue, 29 Jul 2008 09:59:27 GMT</pubDate><dc:creator>jchau</dc:creator></item><item><title>RE: [SOLVED] Programmatically show/hide borderlayout regions</title><link>http://coolite.com/forums/Topic808-4-1.aspx</link><description>The Menu hiding problem is probably caused by the css z-index of the ViewPort regions being higher/greater than that of the 3rd party menu control. Are there options on the menu control to increase the css z-index? or maybe manually adding a css class which will override the default class?&lt;br&gt;&lt;br&gt;Ultimately the best solution is going to be the &amp;lt;ext:Menu&amp;gt; control which is being worked on right now. The &amp;lt;ext:Menu&amp;gt; will fully integrate with all the Panel/Container controls and positioning will be managed automatically.&lt;br&gt;</description><pubDate>Mon, 28 Jul 2008 00:56:02 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: [SOLVED] Programmatically show/hide borderlayout regions</title><link>http://coolite.com/forums/Topic808-4-1.aspx</link><description> Hi jchau,&lt;br&gt;&lt;br&gt;For hiding region in codebehind just set Visible='false' for region panel&lt;br&gt;&lt;br&gt;See small example&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;protected void Page_Load(object sender, EventArgs e)&lt;br&gt;        {&lt;br&gt;            HideRegion(BorderLayout1, RegionPosition.East);&lt;br&gt;            HideRegion(BorderLayout1, RegionPosition.North);&lt;br&gt;            HideRegion(BorderLayout1, RegionPosition.South);&lt;br&gt;        }&lt;br&gt;&lt;br&gt;        private void HideRegion(BorderLayout layout, RegionPosition regionPosition)&lt;br&gt;        {&lt;br&gt;            BorderLayoutRegion region;&lt;br&gt;            switch (regionPosition)&lt;br&gt;            {&lt;br&gt;                case RegionPosition.North:&lt;br&gt;                    region = layout.North;&lt;br&gt;                    break;&lt;br&gt;                case RegionPosition.South:&lt;br&gt;                    region = layout.South;&lt;br&gt;                    break;&lt;br&gt;                case RegionPosition.East:&lt;br&gt;                    region = layout.East;&lt;br&gt;                    break;&lt;br&gt;                case RegionPosition.West:&lt;br&gt;                    region = layout.West;&lt;br&gt;                    break;&lt;br&gt;                case RegionPosition.Center:&lt;br&gt;                    throw new Exception("The center region can't be hide");&lt;br&gt;                    break;&lt;br&gt;                default:&lt;br&gt;                    throw new ArgumentOutOfRangeException("regionPosition");&lt;br&gt;            }&lt;br&gt;&lt;br&gt;            if(region.Items.Count &amp;gt; 0)&lt;br&gt;            {&lt;br&gt;                region.Items[0].Visible = false;&lt;br&gt;            }&lt;br&gt;        }&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;If you need hide on client side then&lt;br&gt;[code]&lt;br&gt;           var west = Ext.getCmp('west-panel'); // this is west panel region&lt;br&gt;           west.hide();&lt;br&gt;           Ext.getCmp('viewport').doLayout();&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Sun, 27 Jul 2008 07:38:42 GMT</pubDate><dc:creator>vladsch</dc:creator></item><item><title>RE: [SOLVED] Programmatically show/hide borderlayout regions</title><link>http://coolite.com/forums/Topic808-4-1.aspx</link><description>Try placing a div before the Viewport and place your menu inside this div.&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;    &amp;lt;div id="menuBar" style="position: absolute; top: 0; left: 0"&amp;gt;&lt;br&gt;        &amp;lt;!-- place your menu here --&amp;gt;&lt;br&gt;    &amp;lt;/div&amp;gt;&lt;br&gt;    &amp;lt;ext:ViewPort ID="ViewPort1" runat="server"&amp;gt;&lt;br&gt;    ...&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;This should render the div on top of the viewport/borderlayout and hopefuly the menu will drop down on top of the layout regions as well.&lt;br&gt;&lt;br&gt;&lt;br&gt;Hope this helps.&lt;br&gt;&lt;br&gt;--&lt;br&gt;Agha&lt;br&gt;&lt;br&gt;</description><pubDate>Sun, 27 Jul 2008 01:46:37 GMT</pubDate><dc:creator>agha</dc:creator></item><item><title>RE: [SOLVED] Programmatically show/hide borderlayout regions</title><link>http://coolite.com/forums/Topic808-4-1.aspx</link><description> It's been a month, and I am still struggling with the same issue.  I have to demo Coolite to my managers in a week and if this can't be resolved, it will be a deal breaker.  &lt;br&gt;</description><pubDate>Sat, 26 Jul 2008 09:14:31 GMT</pubDate><dc:creator>jchau</dc:creator></item><item><title>RE: [SOLVED] Programmatically show/hide borderlayout regions</title><link>http://coolite.com/forums/Topic808-4-1.aspx</link><description> I'm having the same problem I'm using DevExpress Menu and it would't overlay over BorderLayout North it stays behind.  Can some please help &lt;br&gt;&lt;br&gt;&lt;br&gt;Thank You..&lt;br&gt;</description><pubDate>Fri, 25 Jul 2008 14:15:36 GMT</pubDate><dc:creator>Zarzand</dc:creator></item><item><title>RE: [SOLVED] Programmatically show/hide borderlayout regions</title><link>http://coolite.com/forums/Topic808-4-1.aspx</link><description> Another issue I have is that if the menu dropdowns are longer than height of North region, it will be hidden.  Is it possible to have the header and menu stuff outside of the viewport?&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Thu, 26 Jun 2008 14:07:15 GMT</pubDate><dc:creator>jchau</dc:creator></item><item><title>[SOLVED] Programmatically show/hide borderlayout regions</title><link>http://coolite.com/forums/Topic808-4-1.aspx</link><description> I have a viewport in my masterpage.  The north region has a header image, a RadMenu control, and a RadToolbar control.  The other 4 regions have contentplaceholders that a content page can populate if needed.  If a region is empty, I would like to hide it.  How can I achieve this?  Since the viewport is in a masterpage, it needs to be very flexible.  I will have up to 50 pages in this website.  There could be 10 pages that use center region only, 20 pages that use center and west, and etc.  I want the content page to tell the masterpage which region to show.  &lt;br&gt;</description><pubDate>Thu, 26 Jun 2008 13:28:52 GMT</pubDate><dc:creator>jchau</dc:creator></item></channel></rss>