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
close icon

File Explorer doesn't render properly

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

3 Replies

KR Keerthana Rajendran Syncfusion Team 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.   



RS Rupinder Singh 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 


KR Keerthana Rajendran Syncfusion Team 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. 


Loader.
Live Chat Icon For mobile
Up arrow icon