- Home
- Forum
- ASP.NET Web Forms
- File Explorer doesn't render properly
File Explorer doesn't render properly
Hi,
Attachment: Syncfusion_Tab_and_File_Explorer_5adc900.zip
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
SIGN IN To post a reply.
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.
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
RS Rupinder Singh
- Dec 12, 2019 07:29 PM UTC
- Dec 16, 2019 05:22 AM UTC