Hi Le,
Greetings from Syncfusion support.
We have validated your reported issue. We able to get the value using formControlName in reactive forms. We have prepared sample with datasource type as Object for your reference. Please find the test sample and code snippet below.
<ejs-dropdownlist formControlName="skillname" name="skillname"
[dataSource]='data' [fields]='fields' [placeholder]='autoreactiveplaceholder' floatLabelType='Auto'>
</ejs-dropdownlist>
...
public data: { [key: string]: Object }[] =
[ { Id: 'game1', Game: 'Badminton' },
{ Id: 'game2', Game: 'Football' },
{ Id: 'game3', Game: 'Tennis' }];
public fields: Object = { value: 'Game' };
...
<td style="width:50%">Selected Book: </td>
<td class="formtext">{{ skillForm.get('skillname').value }}</td>
|
Kindly check with the above sample meets your requirement. If not or if we misunderstood the query, please provide the below details.
- Elaborate the issue with video demonstration to replicate in our end.
- Try to replicate the issue in the provided sample.
The above requested details will help us to provide you the solution at earliest.
Regards,
Ponmani M