Multiple content item selector for dynamic items in widget d

Posted by Community Admin on 05-Aug-2018 16:03

Multiple content item selector for dynamic items in widget designer

All Replies

Posted by Community Admin on 26-Jul-2016 00:00

Hi,

I was able to implement the multiple content item selector in a widget designer, I can pick items from my dynamic module without issues.

The problem is when I try to save the values.

If I follow exactly what states here: docs.sitefinity.com/feather-use-multiple-content-items-selectors

I build this selector <sf-list-selector sf-dynamic-items-selector sf-item-type="properties.ItemType.PropertyValue" sf-master="true" sf-identifier-field="Title" sf-multiselect="true" sf-selected-ids="selectedIds" sf-selected-items="selectedItems"></sf-list-selector>

and I don't get the values saved.

If I change the sf-selected-ids to something like

<sf-list-selector sf-dynamic-items-selector sf-item-type="properties.ItemType.PropertyValue" sf-master="true" sf-identifier-field="Title" sf-multiselect="true" sf-selected-ids="properties.SelectedIds.PropertyValue" sf-selected-items="selectedItems"></sf-list-selector>

I get this error 

There was an error deserializing the object of type Telerik.Sitefinity.Modules.Pages.Web.Services.Model.WcfControlProperty[]. End element 'PropertyValue' from namespace '' expected. Found element 'item' from namespace ''.

Properties and js functions are exactly as in doc link.

Any guidance would be helpful, thanks.

Posted by Community Admin on 04-Aug-2016 00:00

I am having this same issue.  I have the following selector and get the same error when i save.  I don't use any json or JS files since i don't have any customization.

 

<sf-list-selector sf-dynamic-items-selector sf-provider="properties.ProductProviderName.PropertyValue" sf-item-type="properties.ProductType.PropertyValue" sf-multiselect="true" sf-sortable="true" sf-master="true" sf-selected-ids="properties.ProductIds.PropertyValue" />

Posted by Community Admin on 04-Aug-2016 00:00
This thread is closed