Hi,
How can we add an hyperlink on the summaries. Hyperlink on cells are acheived using CellValuePresenter, but that property doesn't seem to be available for summary cells. How can we add an hyperlink on the summary?
Thanks, Naveen
Great to know Naveen. Glad I could help :)
Hey Jason,
Thanks a lot. Its working.
Naveen :-)
I am not able to see the entire code you gave.
Hello Naveen,
There are several ways you could accomplish this, though one of the easiest approaches would probably be to set up a binding on the Hyperlink's tag. Then, in the click event extract that information from the Tag and use it as you need. For example, here's what it would look like if you wanted the Field's name:
<Hyperlink NavigateUri="http://es.infragistics.com" Tag="{Binding Path=SummaryResult.SourceField.Name, RelativeSource={RelativeSource TemplatedParent}}" Click="Hyperlink_Click">
<TextBlock Text="{Binding Path=SummaryResult.ValueAsync, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"/>
</Hyperlink>
If you wanted access to the whole field or the whole SummaryResult then you could shorten the Path as needed.
Hi Jason, How can I know which column grand total did the user click? because we can have more than 1 hyperlink.