@ViewChild('dropdown') dropdown: DropDownTreeComponent
(created)="onDropDownCreated()"
this.dropdown.value = [defaultValue]
|
<ejs-dialog
#alertDialog
[visible]="hidden"
[showCloseIcon]="true"
[target]="target"
[width]="alertWidth"
(open)="dialogOpen()"
>
<ng-template #header>
<div title="Nancy">DropdownTree component</div>
</ng-template>
<ng-template #content>
<ejs-dropdowntree
id="multiselect"
#dropdownTree
[fields]="field"
[allowMultiSelection]="allowMultiSelection"
popupHeight="220px"
placeholder="Select items"
></ejs-dropdowntree>
</ng-template>
</ejs-dialog>
dialogOpen() {
this.dropdownTree.value = ["6"];
} |