Neriman Merve Unsal
Neriman Merve Unsal

Reputation: 73

Customize dynamic fields in DevExtreme with Angular

I am newbie on angular and devextreme.
I customize fields dynamically as an array, All fields are property of object model. But in HTML part I cannot take the values from form to the datafields.

<*ngFor="let obj of modelUser; let i = index"> 

and datafields are like this :  

<[dataField]="'modelList[' + i + '].id'"

Thanks for advice.

Upvotes: 1

Views: 326

Answers (1)

waleed
waleed

Reputation: 441

The problem is that the value being passed is a string (it will try to get a column called 'modedelList[0].id'). Try this:

<[dataField]="modelList[i].id"

Upvotes: 0

Related Questions