Flat File Filemanager Files not shown in sfDialog

Hi everybody,

  I have a working Flat File Filemanager, but I am not able to display the complete FileManager in a sfDialog. It works fine with a FileManager using FileManagerAjaxSettings.

See attached sample.

  regards

     Uwe


Attachment: RTE_Filemanager_Flat_c889bce6.zip

3 Replies 1 reply marked as answer

VM Vishwanathan Muruganantham Syncfusion Team December 26, 2024 06:20 AM UTC

Hi Uwe,


Greetings from Syncfusion support.


We have reviewed your query and understand that the flat data sample is not rendering properly inside the Dialog component. We suggest using the RefreshLayoutAsync method of the FileManager component in the Opened event of the Dialog component. This will properly render the flat data sample inside the Dialog component.


Refer to the code snippet below for reference.


….

 

<SfDialog Width="600px" ShowCloseIcon="true" @bind-Visible="isFileManagerVisible" IsModal="true" AllowPrerender="false">

    <DialogEvents OnOpen="DialogOnOpen" Opened="OnOpened"></DialogEvents>

    <DialogTemplates>

        <Header>FileManager</Header>

        <Content>

            <div class="e-rte-fm">

 

                @* NOT Working *@

 

                <SfFileManager @ref="fileManagerObj" TValue="FileManagerDirectoryContent" PopupTarget="e-rte-fm" ShowTooltip="false" Width="600px">

                    <FileManagerEvents TValue="FileManagerDirectoryContent"

                    FileSelected="OnImageSelected"

                    OnFileOpen="OnFileOpen"

 

    private async Task OnOpened()

    {

        await fileManagerObj.RefreshLayoutAsync();

    }

 


Sample: attached as zip file.


Please check the sample and let us know if you need any further assistance.


Best Regards,
Vishwanathan


Attachment: RTE_Filemanager_Flat_61a3c443.zip

Marked as answer

UH Uwe Hein replied to Vishwanathan Muruganantham December 26, 2024 09:18 AM UTC

Hi Vishwanathan,

  

   thank you for your response. Works as expected. Maybe you should add this different behaviour of the FlatFileManager in the Dialog to the docs.

    regards

        Uwe




VM Vishwanathan Muruganantham Syncfusion Team December 27, 2024 06:56 AM UTC

Hi Uwe,


We are glad to hear that the provided solution worked for you. We will include this topic in the FileManager User Guide and will inform you once it has been updated. We appreciate your patience and understanding.


Best Regards,
Vishwanathan


Loader.
Up arrow icon