We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

FileManager on the tabs does not work properly

Thread ID:





146589 Aug 9,2019 09:36 AM UTC Aug 13,2019 01:47 PM UTC ASP.NET Core - EJ 2 3
Tags: FileManager
Peter Barasits
Asked On August 9, 2019 09:36 AM UTC


I'm put one tabitem the filemanager. Only show the filemanager header, and filemanager content is gray.

<div id="content1" style="display: none;">
    <h3>Content #1</h3>

<div id="content2" style="display: none;">
    <h3>Content #2</h3>

    <ejs-filemanager id="filemanagerBemutatkozas">
        <e-filemanager-ajaxsettings url="@Url.Action("FileOperations", "Oktatas", new {Area = "Admin"})"
                                    downloadUrl="@Url.Action("Download", "Oktatas", new {Area = "Admin"})"
                                    uploadUrl="@Url.Action("Upload", "Oktatas", new {Area = "Admin"})"
                                    getImageUrl="@Url.Action("GetImage", "Oktatas", new {Area = "Admin"})">

<div id="content3" style="display: none;">
    <h3>Content #3</h3>

<ejs-tab id="ej2Tab">
        <e-tab-tabitem header="@(new TabHeader { Text = "Item 1" })" content="#content1"></e-tab-tabitem>
        <e-tab-tabitem header="@(new TabHeader { Text = "Item 2" })" content="#content2"></e-tab-tabitem>
        <e-tab-tabitem header="@(new TabHeader { Text = "Item 3" })" content="#content3"></e-tab-tabitem>

If the remove display:none on the content2, working properly the filemanager, bbut it the filemanager show appears above the tab, as long as you don't click item 2.

What the problem?

Ashokkumar Balasubramanian [Syncfusion]
Replied On August 12, 2019 06:02 AM UTC

Hi Peter Barasits, 
Greetings from Syncfusion support. 
We have analyzed the reported issue with your provided code block. The reported issue (“File Manager content not displayed properly when apply display:none styles”) occurs, while rendering FileExplorer control in the hidden state (display: none). Normally, our FileManager component rendered based on FileManager element dimension or corresponding parent element dimension. But this scenario(display:none), we can’t get the height and width of an element in hidden state. To resolve this problem, you have to call the “refresh()” method of “FileManager” control after corresponding Tab content active state(selected event). Could you please try this logic and let us know, if you are facing any difficulties? 
Ashokkumar B. 

Peter Barasits
Replied On August 13, 2019 12:55 PM UTC

Thanks, works perfectly.

Ashokkumar Balasubramanian [Syncfusion]
Replied On August 13, 2019 01:47 PM UTC

Hi Peter Barasits, 
We are glad to hear the problem has been resolved. Please let us know, if you need any further assistance. 
Ashokkumar B. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon