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

ToolTip

Hi.

Please advice me, how to achieve that I will have for my SfDataGrid one default tooltip-template, which will show cell-value (and somewhere I will override it in GridColumn.ToolTipTemplate).

Thanks.
Regards,
Juraj

1 Reply

JS Jayapradha S Syncfusion Team May 22, 2014 04:27 AM UTC

Hi Juraj,

 

Thanks for contacting Syncfusion support.

 

You can set Tooltip template for Headers and Cells by using  HeaderTooltipTemplate and TooltipTemplate API  as shown in the below code snippet,

 

Code Snippet:

<syncfusion:GridTextColumn DisplayBinding="{Binding Path=CustomerID}" MappingName="CustomerID">

<syncfusion:GridTextColumn.HeaderToolTipTemplate>

<DataTemplate>

<TextBlock Text="Customer ID"/>

</DataTemplate>

</syncfusion:GridTextColumn.HeaderToolTipTemplate>

<syncfusion:GridTextColumn.ToolTipTemplate>

<DataTemplate>

<TextBlock Text="{Binding CustomerID}" />

</DataTemplate>

</syncfusion:GridTextColumn.ToolTipTemplate>

 

Please let us know if you have any queries.

 

Regards,

Jayapradha S


Loader.
Live Chat Icon For mobile
Up arrow icon