Hi Saravana,
Thanks for contacting Syncfusion support.
We have analyzed your requirement and created a sample for your reference. In the below sample we have created a hyperlink for the first column by using the template property of columns in Grid. You can also achieve your requirement by using the below way.
Kindly refer to the below code example and sample for more information.
|
import { Component, OnInit } from '@angular/core';
import { data } from './datasource';
@Component({
selector: 'app-container',
template: `<ejs-grid [dataSource]='data'>
<e-columns>
<e-column headerText='Template column'textAlign='Center'>
<ng-template #template let-data>
<a rel='nofollow' href="#">{{data.OrderID}}</a>
</ng-template>
</e-column>
<e-column field='OrderID' headerText='Order ID'></e-column>
. . . .
</e-columns>
</ejs-grid>`
})
export class AppComponent implements OnInit {
public data: Object[];
ngOnInit(): void {
this.data = data;
}
}
|
Regards,
R.Dhivya