0

I'm exploring the use of the autogenerated fields in SiteFinity widget designers.

The fields are generated as expected. However, the selected values aer not persisted to the model. I.e. the FAQs property remains null after selecting in the widget designer.

What steps have I missed? Do I need to implement my own angularJS controller?

Here's my model:

    public class CustomWidgetModel: CustomDynamicContentModelBase, IDynamicContentBase
    {
        [Content(Type = "Telerik.Sitefinity.DynamicTypes.Model.FAQs.Faq", AllowMultipleItemsSelection =true)]
        public MixedContentContext FAQs { get; set; }

        [DefaultValue(WidgetDisplay.AllPublished)]
        public WidgetDisplay WidgetDisplay { get; set; }

        [Browsable(false)]
        public override string ContentTypeFullName => "Telerik.Sitefinity.DynamicTypes.Model.FAQs.Faq";

}
Lee
  • 703
  • 6
  • 20
  • do you have any custom designer code? – Veselin Vasilev Jul 01 '22 at 00:03
  • solved, the properties need to be on the controller. it's a known bug: https://knowledgebase.progress.com/articles/Article/autogenerated-field-types-linkmodel-is-not-persisted – Lee Jul 01 '22 at 05:27
  • no, I am using this to test out autogenerated fields and widget designer editors – Lee Jul 01 '22 at 05:30

1 Answers1

0

https://knowledgebase.progress.com/articles/Knowledge/linkmodel-is-not-persisted-if-it-is-in-the-model

It's a known bug, the property needs to be on the controller itself.

Lee
  • 703
  • 6
  • 20