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

Forums / Sitefinity SDK / 4.1 SDK and Products Module Update

4.1 SDK and Products Module Update

4 posts, 0 answered
  1. William
    William avatar
    108 posts
    Registered:
    15 Feb 2011
    29 Apr 2011
    Link to this post
    Hey all,

    Thanks to a combination of forum users (who rock), blog postings and Telerik support through ticketing, I've managed to upgrade a module (almost) to 4.1.

    However, I'm seeing that with the new mappings, the title and content fields are not changed on update.  That is to say, if I choose to edit an item in my module, all fields are successfully changed but the title and the content.

    The same issue happens with the Products Module released today through the SDK.

    Is there some mapping bug that's causing title and content not to update on edit?

    Thanks

    - William
  2. Shannon
    Shannon avatar
    6 posts
    Registered:
    31 Mar 2011
    29 Apr 2011
    Link to this post
    I am also having this problem
  3. William
    William avatar
    108 posts
    Registered:
    15 Feb 2011
    29 Apr 2011
    Link to this post
    Any official response from Telerik?

    I'm hoping something happens over the weekend.  I've been trying to get these modules to work for over a month now.

    Hoping for a quick resolution...

    - William
  4. Nikolay Datchev
    Nikolay Datchev avatar
    87 posts
    Registered:
    01 Nov 2016
    04 May 2011
    Link to this post
    Hello William,
    I confirm there is an issue in the SDK which will soon be corrected and  we will deploy a fixed version. You can quickly fix the problem by changing this in the ProductDefintions.cs and respectively in your custom module definitons.

    The change is in the method:

    private static void CreateBackendSections(DetailFormViewElement detailView, FieldDisplayMode displayMode)

    Go to the defintion of the title field control: var titleField = new TextFieldDefinitionElement(mainSection.Fields)

    and change the

    DataFieldName =  "Title"
    to
    DataFieldName = (displayMode == FieldDisplayMode.Write) ? "Title.PersistedValue" : "Title",

    same for content:  var contentField = new HtmlFieldElement(mainSection.Fields)

    DataFieldName =  "Content"
    to
    DataFieldName = (displayMode == FieldDisplayMode.Write) ? "Content.PersistedValue" : "Content"



    Regards,
    Nikolay Datchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

4 posts, 0 answered