ImageManager.ViewPaths in editForm

3 posts, 1 answers
  1. Jack
    Jack avatar
    128 posts
    Member since:
    May 2003

    Posted 17 Apr 2012 Link to this post

    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. Answer
    Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 20 Apr 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jack
    Jack avatar
    128 posts
    Member since:
    May 2003

    Posted 23 Apr 2012 Link to this post

    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
Back to Top