Posted 26 December 2019, 9:51 am EST
We are using angular 7 with wijmo flex grid and below is the way I am populating
below is .ts file
this.levelTypeFormOptions = new wjcGrid.DataMap(this.countries, ‘id’, ‘name’);
below is html file
<wj-flex-grid-column [binding]=“‘country’”
[dataMap]=“levelTypeFormOptions”
[header]=“‘country’”
[width]=“‘*’”>
The thing is when I select a country its displaying fine but when the collectiong is getting passed its taking id.How do I pass the country name instead of Id in collection
Right now I am sending :
countries :[{
“country”: “3”,state": “8”
},{
“country”: “4”,state": “1”
}]
I want the name of the country instead of the id when I send data in post request .Is that possible