ImageManager.ViewPaths in editForm

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

    Posted 17 Apr 2012 Link to this post


    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.

  2. Answer
    Maria Ilieva
    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:

    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:

    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. DevCraft R3 2016 release webinar banner
  4. Jack
    Jack avatar
    127 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...

    <telerik:EditorTool name="AjaxSpellCheck" />

    and it works now.

    many thanks,

Back to Top