Hi Sathyanarayanan,
Greetings from Syncfusion support.
Query : Now I need help to indicate to ejs-grid to identify the locale of the row using one of the fields, so the text is presented in proper unicode characters instead of question marks.We could see that you want to use multiple languages in the grid. by default, the grid uses only one locale at a time. So you can achieve your requirement by using the valueAccessor property for field you need. Please refer the below documentation for more information.
Regards,Thavasianand S.
Component.html
<ejs-grid #grid [dataSource]='data' allowPaging='true' [pageSettings]='pageSettings'>
<e-columns>
<e-column field='ShipCountry' headerText='ShipCountry' width='150'
[valueAccessor]=' valueAccess' ></e-column>
</e-columns>
</ejs-grid>
Component.ts
export class AppComponent {
public data: Object[];
public toolbar: string[];
public pageSettings: Object;
public refresh: Boolean;
@ViewChild('grid')
public grid: GridComponent;
public ngOnInit(): void {
this.data = data;
this.pageSettings = { pageCount: 5 };
}
valueAccess(field, data, column) {
// here you can return the custom data
return data['ShipCountry'];
}
} |