Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148526 | Oct 23,2019 02:59 PM UTC | Oct 29,2019 09:00 AM UTC | Angular - EJ 2 | 3 |
![]() |
Tags: DropDownList |
<ejs-dropdownlist formControlName="skillname" name="skillname" [dataSource]='autoreactiveskillset'
[placeholder]='autoreactiveplaceholder'>
</ejs-dropdownlist>
<button style="float:right" type="button" (click)="setDefaultValue()">Set Value</button>
|
public autoreactiveskillset: string[] = [
'ASP.NET', 'ActionScript', 'Basic',
'C++', 'C#', 'dBase', 'Delphi',
'ESPOL', 'F#', 'FoxPro', 'Java',
'J#', 'Lisp', 'Logo', 'PHP'
];
setDefaultValue() {
this.userForm.setValue({ name: 'John', skillname: 'Delphi', age: 20 });
} |
Hi Narayanasamy,
I've tested agains your code and now is working fine.
Jose
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.