coolite protal 里动态添加 Portlet
如题 我怎么加都加不到portal里的某一列,添加进去只在顶上显示代码如下
Coolite.Ext.Web.Portlet myPortlet = new Coolite.Ext.Web.Portlet();
myPortlet.Title = "c# added";
myPortlet.ID = "test";
myPortlet.Tools.Add(new Tool(ToolType.Close, string.Concat(myPortlet.ClientID, ".hide();"), "Close Portlet"));
myPortlet.Html = "={text}";
myPortlet.Border = false;
this.PortalColumn4.Add(myPortlet);
this.PortalColumn4.DoLayout();
this.Portal2.DoLayout();