Dynamic Items Field Control Selector bug

Posted by Community Admin on 04-Aug-2018 03:01

Dynamic Items Field Control Selector bug

All Replies

Posted by Community Admin on 15-Oct-2012 00:00

Hello,

www.sitefinity.com/.../creating-field-control-with-selector-for-dynamic-items

When following the documentation located in the link above, I am coming across an issue when the dynamic module has a space in the name.

When I create a new Dynamic Content Selector under a module that has a space in the name, the select fails to load correctly when adding/editing content records in the back-end.

Upon further review, it seems to be a spacing issue.

The link that Sitefinity TRIES to load is as follows:

http://***.com/Sitefinity/Services/DynamicModules/Data.svc/?itemType=Telerik.Sitefinity.DynamicTypes.Model.Video%20Games.VideoGame&itemSurrogateType=Telerik.Sitefinity.GenericContent.Model.Content&allProviders=true&skip=0&take=50

...but the only link that resolves is this one (change is in bold):

http://***.com/Sitefinity/Services/DynamicModules/Data.svc/?itemType=Telerik.Sitefinity.DynamicTypes.Model.VideoGames.VideoGame&itemSurrogateType=Telerik.Sitefinity.GenericContent.Model.Content&allProviders=true&skip=0&take=50

This issue prevents me from using the selector as it never succeeds in loading the list of items to choose.

Thanks,

Garrett

Posted by Community Admin on 15-Oct-2012 00:00

Found the fix!

It looks like the "VideoGameSelctor.cs" file that was generated within VS has an issue on this line:

private string dynamicModuleType = "Telerik.Sitefinity.DynamicTypes.Model.Video Games.VideoGame";

Removing the space in "Video Games" fixed the problem.

This thread is closed