Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150134 | Dec 22,2019 01:56 AM UTC | Dec 24,2019 12:15 PM UTC | Angular - EJ 2 | 3 |
![]() |
Tags: Grid |
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'];
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.