Posted 29 Oct 2017 Link to this post
I have a radeditor inside a radgrid inside a raddataform. How do I set the image upload path for the radeditor programatically in code-behind (C#)?
Posted 30 Oct 2017 Link to this post
string
[] viewImages =
new
[] {
"~/Images"
};
[] uploadImages =
"~/Images/New"
[] deleteImages =
"~/Images/New/Articles"
,
"~/Images/New/News"
if
(!IsPostBack)
{
RadEditor1.ImageManager.ViewPaths = viewImages;
RadEditor1.ImageManager.UploadPaths = uploadImages;
RadEditor1.ImageManager.DeletePaths = deleteImages;
//to change the View mode to Grid use the below syntax
RadEditor1.ImageManager.ViewMode = Telerik.Web.UI.Editor.DialogControls.ImageManagerViewMode.Grid;
}