You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: knowledge-base/gantt-tooltip-access-model-fields.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,13 +27,13 @@ I want to access and display model fields in the Gantt Timeline Tooltip. In the
27
27
28
28
The `TooltipTemplate` context .... . If you want to accsess and dispaly the other fields form you model, you have two options:
29
29
30
-
*[Get the model from your data based on the `Title`](#get-the-model-from-your-data-based-on-the-context-properties)
30
+
*[Get the Model from Your Data Based on the Context Properties](#get-the-model-from-your-data-based-on-the-context-properties)
31
31
*[Use a custom Tooltip](#use-a-custom-tooltip)
32
32
33
33
34
34
### Get the Model from Your Data Based on the Context Properties
35
35
36
-
This solution relies on finding the task item in your data based on the properties that the `TooltipTemplateContext`. The approach is applicable only if all items in your data have unique values for these properties and the application that hosts the Gantt is not a multi-language one.
36
+
This solution relies on finding the task item in your data based on the properties that the `TooltipTemplateContext` provides. The approach is applicable only if all items in your data have unique values for these properties and the application that hosts the Gantt is not a multi-language one.
37
37
38
38
1. Cast the [`TooltipTemplate`]({%slug gantt-tooltip-template%}) `context` to `TooltipTemplateContext`.
39
39
2. Use the [available properties of the `TooltipTemplateContext`](https://docs.telerik.com/blazor-ui/api/Telerik.Blazor.Components.TooltipTemplateContext) to find the data item in the Gantt data collection. The example below uses the `Title` property.
0 commit comments