Hi Cahya,
Greetings from Syncfusion support.
You can achieve the requirement of defining anchor tag in Grid toolbar by using the custom toolbar item and toolbar item template of the Grid toolbar as demonstrated in the below code snippet,
|
@{
/* Custom toolbar item */
List<object> toolbarItems = new List<object>();
/* The template id is set to the custom toolbar item’s template property */
toolbarItems.Add(new { template = "#Template" });
}
/* Template with the anchor tag */
<div id='Template'><a class="btn btn-primary" target="_blank" rel='nofollow' rel='nofollow' href=https://help.syncfusion.com/ role="button">Open help Link</a> </div>
<div>
/* The custom toolbar item is then assigned to the Grid’s toolbar property */
<ejs-grid id="Grid" dataSource="@ViewBag.Data" toolbar=toolbarItems>
</ejs-grid>
</div> |
We have prepared a sample based on this for your reference. You can find it below,
More details on this can be checked in the below documentation links,
Please get back to us if you require any further assistance.
Regards,
Sujith R