Nov 16, 2010, 6:51 PM
[1.0] Portlet - Hide close button
Hello!
I've been playing arround with Ext.Net 1.0, and it's great so far...
Now I've a litle problem with portlet. I'm not able to hide the close button. I've tried lots of things. If you could help...
Shouldn't the closable property handle this?
HideBorders does not seem to work as described also...
If I use panel, the draggable does not work.
SCENARIO: I want to allow a user to close or drag portlet if it has admin rights.
I'm doing it in code behind only. Whith something like this:
I've been playing arround with Ext.Net 1.0, and it's great so far...
Now I've a litle problem with portlet. I'm not able to hide the close button. I've tried lots of things. If you could help...
Shouldn't the closable property handle this?
HideBorders does not seem to work as described also...
If I use panel, the draggable does not work.
SCENARIO: I want to allow a user to close or drag portlet if it has admin rights.
I'm doing it in code behind only. Whith something like this:
Ext.Net.HBoxLayoutConfig columnLayout = new HBoxLayoutConfig();
this.LayoutConfig.Add(columnLayout);
Ext.Net.Portal portal = new Portal();
portal.ID = "portalPlaceHolder";
portal.Layout = "Column";
portal.MinHeight = new System.Web.UI.WebControls.Unit("600px");
portal.Border = false;
Ext.Net.PortalColumn column = new PortalColumn();
column.ColumnWidth = 0.5;
portal.Items.Add(column);
Ext.Net.Portlet portlet1 = new Portlet();
portlet1.ID = "Portlet1";
column.Items.Add(portlet1);
Ext.Net.PortalColumn column1 = new PortalColumn();
column1.ColumnWidth = 0.5;
Ext.Net.Portlet portlet2 = new Portlet();
portlet2.ID = "Portlet2";
portlet2.TitleCollapse = false;
column1.Items.Add(portlet2);
Ext.Net.Portlet portlet3 = new Portlet();
portlet3.ID = "Portlet3";
portlet3.Draggable = false;
portlet3.Collapsible = false;
portlet3.Closable = false; /* does nothing */
portlet3.HideBorders = false ; /* does nothing */
portlet3.Title = "texto";
column1.Items.Add(portlet3);
portal.Items.Add(column1);