PageFieldElement doesnt update selected values properly
Hello. i have a PageFieldElement control setup on my custom module which doesn't update properly when going between 2 different module items.
eg: i create PartnerA and PartnerB and each have a different page selected using the control below. If i view PartnerA and then go to view PartnerB the page that i selected on PartnerA will be the one that shows up on that control.
Looking at the code behind and the partnermanager.cs file shows that the right IDs are being passed back n forth, its just that this control does not update properly.
If i reload the page then i get the correct data showing up on my first viewing of a partner. After the first viewing i get the same issue.
the control reference in our definitions file looks like:
var nodeToCopyField = new PageFieldElement(nodeToCopySection.Fields)
ID = "nodeToCopyField",
DataFieldName = "NodeToCopyID",
DisplayMode = displayMode,
Title = "NodeToCopyFieldTitle",
Description = "NodeToCopyFieldDescription",
WrapperTag = HtmlTextWriterTag.Li,
CssClass = "sfUserAvatar",
ResourceClassId = typeof(PartnersResources).Name,
RootNodeID = Telerik.Sitefinity.Abstractions.SiteInitializer.FrontendRootNodeId,
WebServiceUrl = "~/Sitefinity/Services/Pages/PagesService.svc"
;
No ideas? it sounds like one of sitefinity's caching bugs to me.
EDIT: