This is a migrated thread and some comments may be shown as answers.

ImageManager.ViewPaths in editForm

2 Answers 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 17 Apr 2012, 08:14 AM
Hi,

I can find my RadEditor in the the EditForm Template in ItemDataBound or ItemCreated using the code below.
It finds the editor because I can set it to be invisible, no problem.
However, I'm trying to set the ImageManager.ViewPaths and I just can't get it to works.

If (TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode) Then
 
           Dim editFormItem As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)
           Dim _reJobDesc As RadEditor = DirectCast(editFormItem.FindControl("reJobDesc"), RadEditor)
 
           '_reJobDesc.Visible = False
 
           Dim _clID As String = _UsersDB.GetCLIDByScID(sInt)
 
           _reJobDesc.ImageManager.ViewPaths = New String() {"~/folders/clients/" & _clID & "/images/"}

All help most appreciated.
Cheers,
Jon

2 Answers, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 20 Apr 2012, 11:33 AM
Hi Jon,

Could you please ensure that the path you have specified is a valid one. I would suggest you to treeview the following online resources which elaborate son similar matter:

http://www.telerik.com/help/aspnet-ajax/editor-images.html
http://www.telerik.com/help/aspnet-ajax/editor-uploading-images-to-server.html

Also please try to set grand [permissions for the "everyone" user and verify of this makes any difference.

You could also review the following kb article which could be helpful in your case:
http://www.telerik.com/support/kb/aspnet-ajax/editor/uploading-images-to-the-server-upload-tab-is-disabled.aspx


Regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Jon
Top achievements
Rank 1
answered on 23 Apr 2012, 11:34 AM
Hi Maria,

The path was correct and I have it working now.
The editor was using an external xml tools file.
I changed that to use the tools inline...

<Tools>
<telerik:EditorToolGroup>
<telerik:EditorTool name="AjaxSpellCheck" />

and it works now.

many thanks,

Jon
Tags
Grid
Asked by
Jon
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Jon
Top achievements
Rank 1
Share this question
or