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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

File Explorer doesn't render properly

Thread ID:

Created:

Updated:

Platform:

Replies:

149880 Dec 12,2019 07:29 PM UTC Dec 16,2019 05:22 AM UTC ASP.NET Web Forms 3
loading
Tags: FileExplorer
Rupinder Singh
Asked On December 12, 2019 07:29 PM UTC

Hi, 

I am using Syncfusion File Explorer with Community Licence. It doesn't render properly with Tab click. But if I redraw or minimize and maximize the browser window it renders fine.

Please also see attached screenshot showing the issue.

Thanks,

Rupinder Singh 

 

Attachment: Syncfusion_Tab_and_File_Explorer_5adc900.zip

Keerthana Rajendran [Syncfusion]
Replied On December 13, 2019 05:47 AM UTC

  
Hi Rupinder, 
 
Good day to you.   
  
While rendering FileExplorer inside a hidden element, dimensions may not be updated correctly since it hidden initially. We suggest you to invoke the adjustSize() method in “onActive” event which will be triggered when the tab gets active. Please refer to the following code  
  
<ej:Tab ID="fileTab" runat="server" ClientSideOnActive="SetExplorer">  
        <Items>  
            <ej:TabItem ID="property"  Text="Property">  
                <ContentSection>  
                   Property related details  
                </ContentSection>  
            </ej:TabItem>  
            <ej:TabItem ID="Owner" Text="Owner/Contact">  
                <ContentSection>  
                    Contact owner  
                </ContentSection>  
            </ej:TabItem>  
            <ej:TabItem ID="Documents"  Text="Documents">  
                <ContentSection>  
                    <div id="fileExplorer"></div>                      
                </ContentSection>  
            </ej:TabItem>  
            
        </Items>  
    </ej:Tab>  
    <script>  
        var FileObj;  
        function SetExplorer(args) {  
             $("#fileExplorer").ejFileExplorer({  
                isResponsive: true,  
                width: "100%",  
                layout: "grid",            
                path: "~/Content/images/FileExplorer",  
                ajaxAction: "/FileExplorer/FileExplorerFeatures.aspx/FileActionDefault"  
            });  
            var fileExplorerObj = $("#fileExplorer").data("ejFileExplorer");  
            fileExplorerObj.adjustSize();  
        }  
       
    </script>  
  
  
Please let us know if you need further assistance.  
  
Regards,  
Keerthana.   


Rupinder Singh
Replied On December 13, 2019 04:29 PM UTC

I have fixed this issue by creating custom Tabs and made sure that once Tab becomes active only then it trigger method to render file explorer. Anyway,  thank you for your help. 

Regards,

Rupinder 

Keerthana Rajendran [Syncfusion]
Replied On December 16, 2019 05:22 AM UTC

Hi Rupinder, 
 
Most welcome. We are glad to hear that the issue has been resolved. In previous code too, the FileExplorer is rendered only through the active event of Tab similar to your scenario. Please get back to us if you need any further assistance on this 
 
Regards, 
Keerthana. 


CONFIRMATION

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