Hi Sowmiya,
Thanks for the help.
I added your code in my project but I getting this message:

<div class="control-section">
@Html.EJS().FileManager("filemanager").CssClass("myfilemanger").AjaxSettings(new Syncfusion.EJ2.FileManager.FileManagerAjaxSettings
{
Url = "FileOperations",
GetImageUrl = "GetImage",
UploadUrl = "Upload",
DownloadUrl = "Download"
}).ToolbarSettings(new FileManagerToolbarSettings()
{
Items = items
}).ContextMenuSettings(new FileManagerContextMenuSettings()
{
File = files,
Folder = folder,
Layout = layout
}).NavigationPaneSettings(ls => ls.Visible(false)).Path("/" + ViewBag.Code).ToolbarClick("toolbarClick").ToolbarCreate("onCreate").View(Syncfusion.EJ2.FileManager.ViewType.Details).FileOpen("fileOpened").Render()
<!-- end of filemanager element -->
</div>
<script>
function fileOpened(args) {
var fileManager = document.getElementById("filemanager").ej2_instances[0];
if (args.fileDetails.isFile) {
var path = (fileManager.path + args.fileDetails.name);
var jsonData = new Object();
jsonData["documentName"] = path;
$.ajax({
url: '/FileManager/GetDocument',
type: 'POST',
dataType: 'text',
crossDomain: true,
traditional: true,
contentType: 'application/json; charset=utf-8',
data: JSON.stringify(jsonData),
success: function (data) {
//Open Window in new tab
if ((/\.(pdf)$/i).test(args.fileDetails.name)) {
var ws = window.open("", '_blank', "width=800,height=600,location=no,menubar=no,status=no,titilebar=no,resizable=no")
//Adding script and CSS files
ws.document.write('<!DOCTYPE html><html><head><title>PdfViewer</title><link rel='nofollow' href = "https://cdn.syncfusion.com/ej2/18.2.45/material.css" rel = "stylesheet"><script src="https://cdn.syncfusion.com/js/assets/external/jquery-3.1.1.min.js"><\/script><script src="https://cdn.syncfusion.com/ej2/18.2.45/dist/ej2.min.js"><\/script><\/head><body>');
//Div to render PDF Viewer
ws.document.write('<div style="width:100%;min-height:570px"><div id="PdfViewer"></div><\/div>')
//Initializes the PDF Viewer
ws.document.write("<script> var pdfviewer = new ej.pdfviewer.PdfViewer({documentPath:'" + data + "',serviceUrl: '/FileManager'});pdfviewer.appendTo('#PdfViewer');<\/script>")
ws.document.write('<\/body><\/html>');
ws.document.close();
}
},
error: function (msg, textStatus, errorThrown) {
alert('Exception' + msg.responseText);
}
});
}
}
Regards,