Hi,
I'm struggling with the following problem:
I want to attach a tooltip to a column and then having the content of the tooltip associated with a class parameter, like so:
<SfTab>
<TabItems>
<TabItem>
<ChildContent>
<TabHeader Text="Campaign Exceptions"></TabHeader>
</ChildContent>
<ContentTemplate>
<SfGrid Width="50%" DataSource="@campaignExceptions" AllowSorting="true" EnableAltRow="true" @ref="@CampaignExceptionsGrid" AllowResizing="true">
<GridEditSettings AllowEditing="true" Mode="Syncfusion.Blazor.Grids.EditMode.Batch"></GridEditSettings>
<GridSelectionSettings Mode="Syncfusion.Blazor.Grids.SelectionMode.Both" CheckboxMode="CheckboxSelectionType.Default"></GridSelectionSettings>
<GridEvents CellSelected="CellSelectHandler" CellSaved="CellSavedHandler" TValue="CampaignException"></GridEvents>
<GridColumns>
<GridColumn Field=@nameof(CampaignException.ExceptionId) HeaderText="#" IsPrimaryKey="true" AllowEditing="false" TextAlign="TextAlign.Center" Width="100"></GridColumn>
<GridColumn Field=@nameof(CampaignException.Active) HeaderText="Is Active" DisplayAsCheckBox="true" EditType="EditType.BooleanEdit" AllowEditing="true" TextAlign="TextAlign.Center" Width="100"></GridColumn>
<GridColumn Field=@nameof(CampaignException.Name) HeaderText="Name" TextAlign="TextAlign.Left" Width="100" AllowEditing="false">
<Template>
@{
CampaignException exception = (context as CampaignException);
<div>
<SfTooltip ID="exceptionDescriptionTooltip" Target="#exceptionName" Position="Position.BottomCenter" Content="@exception.Description">
<div id="exceptionName">
@exception.Name
</div>
</SfTooltip>
</div>
}
</Template>
</GridColumn>
</GridColumns>
</SfGrid>
</ContentTemplate>
</TabItem>
</TabItems>
</SfTab>
And this is the result when hovering over the "Name" column:
And without the SfTooltip:
Can you please tell me what exactly am I doing wrong? And is it possible to achieve this while hovering over all the columns?
Thank you,
David.