DocIcon is not getting displayed in SharePoint page after Dll upgradation

2 posts, 0 answers
  1. priya
    priya avatar
    1 posts
    Member since:
    Dec 2016

    Posted 13 Apr Link to this post

    Hi Team,

    We have upgraded following dll from Telerik.Web.UI.dll (2014.2.724.45) to Telerik.Web.UI.dll (2020.1.219.45)
    & RadEditorSharePoint.dll(7.4.1.0) to RadEditorSharePoint.dll (7.21.1.0) in SharePoint 2013 environment.

    Before upgrading the dll, doclink is displaying along with icon on the SharePoint page, but after upgrading the dll, only doclink is getting displayed on the SharePoint page.

    How to fix this issue. please suggest.

     

  2. Rumen
    Admin
    Rumen avatar
    14392 posts

    Posted 15 Apr Link to this post

    Hello,

    Is this a custom feature that you have implemented for the past version?

    Can you provide better screenshots of the demonstrated functionality so that I can see whether this is a dialog or something else?

    In the meantime please see this forum on a similar topic 

    Document Type icon for pdf.

    The tool which you can test is called

    <tool name="SPLinkManager" text="Insert Link" />

    as you can see here - MOSSLinkManager.

    If your question is how to get the file icon(before the file name) to display in the view mode for different file types , like word document, MS excel, pdf etc., file icons? - You can attach to the OnClientPasteHtml event, check the file type in the string returned by the args.get_value() method, add an image with the appropriate icon and insert the modified content via the args.set_value() method.

    For SharePoint Editor, set the OnClientPasteHtml property in the \Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\RadEditorSharePoint\7.21.1.0__1f131a624888eeed\Resources\ListConfigFile.xml / ConfigFile.xml file:

    <property name="OnClientPasteHtml">OnClientPasteHtml</property>

    and put the JavaScript function at the end of the SPEditorTools.js placed again in the above folder:
    \Program Files\Common Files\Microsoft Shared\Web Server Extensions\wpresources\RadEditorSharePoint\7.21.1.0__1f131a624888eeed\Resources

    Example:
    function OnClientPasteHtml(sender, args)  
    {  
        var commandName = args.get_commandName();  
        var value = args.get_value();  
           
       if (commandName == "DocumentManager")  
            { 
                //modify the default value to include the image tag and paste it via the set_value method    
                args.set_value(value);  
            } 
        }  
    }
      

     

    Regards,
    Rumen
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top