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

FileManager on the tabs does not work properly


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?

3 Replies

AB Ashokkumar Balasubramanian Syncfusion Team 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. 

PB Peter Barasits August 13, 2019 12:55 PM UTC

Thanks, works perfectly.

AB Ashokkumar Balasubramanian Syncfusion Team 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. 

Live Chat Icon For mobile
Up arrow icon