4.1 SDK and Products Module Update

Posted by Community Admin on 05-Aug-2018 02:01

4.1 SDK and Products Module Update

All Replies

Posted by Community Admin on 29-Apr-2011 00:00

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

Posted by Community Admin on 29-Apr-2011 00:00

I am also having this problem

Posted by Community Admin on 29-Apr-2011 00:00

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

Posted by Community Admin on 04-May-2011 00:00

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

This thread is closed