1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / PageFieldElement doesnt update selected values properly

PageFieldElement doesnt update selected values properly

2 posts, 0 answered
  1. Rory
    Rory avatar
    44 posts
    Registered:
    22 Mar 2012
    27 Jun 2012
    Link to this post
    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.
  2. Rory
    Rory avatar
    44 posts
    Registered:
    22 Mar 2012
    03 Jul 2012
    Link to this post
    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.
2 posts, 0 answered