How do you popup the "Insert and Image" dialogue box, on a backend page?
am building a RadGrid control, which when a user clicks on a row, opens up an edit form.
This form features a person photo image, which I require the functionality to change as the user desires.
So I am trying to figure out the code to include in the code behind of the .asmx web control, that pops up the "Insert an image" dialogue, that you current have with the image control in Sitefinity.
I have been experimenting with:
<
sf:MediaContentSelectorView
id
=
"selectorView"
runat
=
"server"
ContentType
=
"Telerik.Sitefinity.Libraries.Model.Image"
ParentType
=
"Telerik.Sitefinity.Libraries.Model.Album"
LibraryBinderServiceUrl
=
"~/Sitefinity/Services/Content/AlbumService.svc/"
MediaContentBinderServiceUrl
=
"~/Sitefinity/Services/Content/ImageService.svc/"
MediaContentItemsListDescriptionTemplate
=
"Telerik.Sitefinity.Resources.Templates.Designers.Libraries.Images.ImageItemDescriptionTemplate.htm"
DisplayResizingOptionsControl
=
"false"
ShowOpenOriginalSizeCheckBox
=
"false"
></
sf:MediaContentSelectorView
>
Hello,
There is a control that allows upload of an image and/or selection from already uploaded images. This control combines MediaContentSelectorView and MediaContentUploaderView. Here is a blog post that gives a sample of this control.
<
sf:EditorContentManagerDialog
runat
=
"server"
ID
=
"asyncImageSelector"
DialogMode
=
"Document"
Width
=
"540"
HostedInRadWindow
=
"false"
BodyCssClass
=
""
/>
this
._uploadDialog = jQuery(
this
._asyncImageSelector.get_element()).dialog(
autoOpen:
false
,
modal:
true
,
width: 540,
height:
"auto"
,
closeOnEscape:
true
,
resizable:
false
,
draggable:
false
,
zIndex: 5000,
dialogClass:
"sfSelectorDialog"
);