Is it possible to target a DataSource property value from a custom
CaptionTemplate in the GridGroupSettings in order to hyperlink the Group
Header title on a unique value to the group?
<GridGroupSettings Columns=@InitialGroup ShowDropArea="false">
<CaptionTemplate>
@{
var workspace = (context as CaptionTemplateContext);
<div style="display: inline-block; margin-top:3px;">
<a rel='nofollow' href=<DataSourceProperty> class="workspacelink">@workspace.Key </a>
</div>
}
</CaptionTemplate>
</GridGroupSettings>
Hi Riley,
Greetings from Syncfusion support.
We checked your query by given code and prepared sample in the CaptionTemplate of GridGroupSettings with hyperlink for the Group Header title. We also attached the sample in this ticket. Please refer the attached sample for your reference.
If we misunderstand the query please give more details, Kindly share the below details to validate further at our end.
The above-requested details will be helpful for us to validate the reported query at our end and provide the solution as early as possible.
Regards,
Naveen Palanivel
Thank you for looking into this Naveen but I don't think this is quite what I'm looking for.
Modifying your example a bit, I'm trying to somehow get a different property into the link value of the hyperlink tag while grouping on the OrderID. It would look more like this, where the MyURL property has been added to the Order class -
Hi Riley,
We checked your and prepared as per the requirement for the MyURL property has been added to the class property. We attached the sample in this ticket , Please refer the attached sample for your reference.
you have further queries, please get back to us
Regards,
Naveen Palanivel