Services Partners Company
Knowledge Base


Article

Editing an image in custom designer throws an error

« Go Back

Information

 
EnvironmentProduct: Sitefinity
Version: 9., 10.x
OS: All supported OS versions
Database: All supported Microsoft SQL Server versions
Question/Problem Description
When using sf -image-field in custom desinger and trying to select "Crop/Resize/Rotate..." in "Edit all properties" the window that pops up throws an error.

 

Steps to Reproduce1. Create custom designer with sf-image-field.
2. Open the designer and select image
3. Click on "Edit all properties"
4. Under Preview the image appears and on the right click the button and there select "Crop/Resize/Rotate..."
5. The error will pop up
Clarifying Information
Error MessageThere is no configuration for data provider with the name of "undefined" for "Telerik.Sitefinity.Modules.Libraries.LibrariesManager" manager. Please check the spelling of the name and whether such configuration exists.
Defect/Enhancement Number
Cause
A provider has not been set.
Resolution
1. In the cshtml file use the following markup:
<sf-image-field class="sf-Media--info modal-settings modal-settings-space"
                    sf-model="properties.SecondSelectedImageId.PropertyValue"
                    sf-image="selectedImage1"
                    sf-provider="properties.ImageProviderName.PropertyValue">
</sf-image-field>
2. In the controller add a property ImageProvider
public string ImageProviderName { get; set; }
Workaround
Notes
Attachment 
Last Modified Date6/19/2017 1:34 PM
Disclaimer

The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.



Feedback
 
Was this article helpful?

   

Your feedback is appreciated.

Please tell us how we can make this article more useful.



Characters Remaining: 255