Dec 26, 2008, 5:33 AM
Portal, Portlet & Viewstate
Hi,
We have developed a dashboard application using Portal. With version 0.6, everything was OK. In version 0.7, there are two issues.
We have developed a dashboard application using Portal. With version 0.6, everything was OK. In version 0.7, there are two issues.
void AddWidgetToAnchorLayout(Portlet w, AnchorLayout layout, int position)
{
Anchor an = new Anchor();
an.Horizontal = "100%";
an.Items.Add(w); //-> if we add at the end, we get jscript error.
if (position > layout.Controls.Count)
position = layout.Controls.Count;
if (position >= 0)
{
layout.Controls.AddAt(position, w);
layout.Anchors.Insert(position, an);
}
else
{
layout.Controls.Add(w);
layout.Anchors.Add(an);
}
//an.Items.Add(w); ->this was working with 0.6
}
Second issue is, maybe more important, viewstate of the user control loaded inside (BodyControls) portlet is lost. In version 0.6 we have tested everything and it was working. We want to figure out what the problem is with this new release. Usercontrol saves the state to the viewstate (we have tested it with a viewstate parser) but cannot load viewstate data. There is no error, just viewstate is lost