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

DocIcon is not getting displayed in SharePoint page after Dll upgradation

1 Answer 73 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
priya
Top achievements
Rank 1
priya asked on 13 Apr 2020, 07:31 AM

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.

 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 15 Apr 2020, 10:59 AM

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.
Tags
Sharepoint Integration
Asked by
priya
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or