PageFieldElement doesnt update selected values properly

Posted by Community Admin on 04-Aug-2018 23:06

PageFieldElement doesnt update selected values properly

All Replies

Posted by Community Admin on 27-Jun-2012 00:00

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"
;

any thoughts or suggestions are welcome. thanks.

Posted by Community Admin on 03-Jul-2012 00:00

No ideas?  it sounds like one of sitefinity's caching bugs to me.

EDIT:

Even after publishing a partner, the page selectors dont update the selected page display properly.  i thought that publishing was supposed to refresh the cache...  maybe that's only Page Publishing?

Disabling Data Caching also does not help with this issue.

This thread is closed