Nov 03, 2009, 12:33 PM
[CLOSED] Adding portlets dynamically
Hi,
I have a problem creating a new Portlet dynamically and adding it to a PortalColumn.
While debugging the code I couldn't see any error, so I suppose it could be a caching problem.
Here is my code:
Thanks in advance,
I have a problem creating a new Portlet dynamically and adding it to a PortalColumn.
While debugging the code I couldn't see any error, so I suppose it could be a caching problem.
Here is my code:
<%-- aspx code -->
<ext:LayoutColumn ColumnWidth="0.7">
<ext:Panel runat="server" Border="false" ID="ApplicationsPanel">
<Body>
<ext:FitLayout runat="server">
<ext:Portal runat="server" Border="false">
<Body>
<ext:ColumnLayout runat="server">
<ext:LayoutColumn ColumnWidth=".9">
<ext:PortalColumn runat="server" StyleSpec="padding:10px 0 10px 10px" ID="ApplicationsPortalColumn">
<Body>
<%-- Portlet will be inserted here -->
</Body>
</ext:PortalColumn>
</ext:LayoutColumn>
</ext:ColumnLayout>
</Body>
</ext:Portal>
</ext:FitLayout>
</Body>
</ext:Panel>
</ext:LayoutColumn>
<%-- aspx.cs code -->
protected void ManageApplications(object sender, AjaxEventArgs e)
{
... some code that retrieves data ...
Portlet p = new Portlet();
p.Title = "foo";
this.ApplicationsPortalColumn.Add(p);
}
Any help would be appreciated.Thanks in advance,