Show tooltip for filename and column header

Hello Syncfusion Team,

In blazor syncfusion file manager, how can I show tooltip when hover on filename, and when hover on column header.

Please refer to image 

syncFM2.png

Note: the image is from syncfusion  vue.js filemanager component, but we are using blazor.

Thank you and Best regards,

Ahmed


3 Replies 1 reply marked as answer

AS Ahmed Samy September 2, 2024 04:32 PM UTC

any updates ?



LD LeoLavanya Dhanaraj Syncfusion Team September 3, 2024 03:24 AM UTC

Hi Ahmed,


Greetings from Syncfusion support.


We would like to inform you that we do not have direct support for displaying the built-in tooltip in FileManager columns and their headers. However, you can achieve this requirement using the native tooltip. Here, we have added the title attribute to the header and columns of the FileManager with the help of ColumnTemplate and HeaderTemplate support. Please refer to the code snippets and output screenshots provided below for further reference.


@using Syncfusion.Blazor.FileManager

 

<SfFileManager TValue="FileManagerDirectoryContent" View="ViewType.Details">

    <FileManagerAjaxSettings Url=https://ej2-aspcore-service.azurewebsites.net/api/FileManager/FileOperations

                             UploadUrl=https://ej2-aspcore-service.azurewebsites.net/api/FileManager/Upload

                             DownloadUrl=https://ej2-aspcore-service.azurewebsites.net/api/FileManager/Download

                             GetImageUrl=https://ej2-aspcore-service.azurewebsites.net/api/FileManager/GetImage>

    </FileManagerAjaxSettings>

    <FileManagerDetailsViewSettings>

        <FileManagerColumns>

            <FileManagerColumn Field="Name">

                <HeaderTemplate><span class="e-headertext" title="Name" >Name</span></HeaderTemplate>

                <Template>

                    @{

                        var data = (context as FileManagerDirectoryContent);

                        <div><span title="@data!.Name" class="e-fe-text">@data!.Name</span></div>

                    }

                </Template>

            </FileManagerColumn>

            <FileManagerColumn Field="Size" MinWidth="50" Width="110">

                <HeaderTemplate><span class="e-headertext" title="Size">Size</span></HeaderTemplate>

                <Template>

                    @{

                        var data = (context as FileManagerDirectoryContent);

                        <div><span title="@data!.Size" class="e-fe-text">@data!.Size</span></div>

                    }

                </Template>

            </FileManagerColumn>

        </FileManagerColumns>

    </FileManagerDetailsViewSettings>

</SfFileManager>


Output screenshots:


Tooltip for Header

Tooltip for columns


Also, refer the below documentation link for Details View column customizations.


https://blazor.syncfusion.com/documentation/file-manager/views#details-view


Regards,

Leo Lavanya Dhanaraj


Marked as answer

AS Ahmed Samy September 3, 2024 03:49 PM UTC

Hello  Leo Lavanya Dhanaraj,


Thank you it solved my issue.


Best regards,

Ahmed


Loader.
Up arrow icon