Posted 31 October 2019, 7:23 am EST
Hi Team,
I want to select the default value to blank on my combo box. I am usign Angular 4. Here is my code.
<wj-combo-box #companyCombo class=“wj-combo-box”
[itemsSource]=“dataMap_company”
[displayMemberPath]=“‘company’”
[selectedValuePath]=“‘companyId’”
[isEditable]=“false”
[placeholder]=“‘’”
name=“cboCompany”
[selectedIndex]=“‘selectedIndex’” (selectedIndexChanged)=“onCompanySelectedIndexChanged(companyCombo.selectedValue)”
ngModel>
export class GridCmp {
@ViewChild(“cboCompany”) cboCompany;
selectedIndex = ‘’;
}
I have tried the solution from this post (https://www.grapecity.com/forums/wijmo/how-to-prevent-combobox-to_1) but that didnt help me. Any solution how to do it?
Thanks