Multiple content item selector for dynamic items in widget designer
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.
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"
/>
I got this going on my end. See my steps posted here: http://www.sitefinity.com/developer-network/forums/project-feather/ability-to-sort-custom-content-type-in-designer