How to make the ejs-multiselect dropdown mandatory for selection? The Submit button should be disabled till we select any value from the multiselect dropdown.
My code is:
|
<form #form="ngForm">
<div class="form-group">
<ejs-multiselect name="skillname" required #book='ngModel' [(ngModel)]='autoskillname' [dataSource]='autoSkillsetData' [placeholder]='autoDrivenPlaceholder'>
</ejs-multiselect>
<div *ngIf="book.invalid && (book.dirty || book.touched)" class="alert alert-danger">
<div *ngIf="book.errors.required"> Book Name is required.</div>
</div>
</div>
<div class="form-group" style="padding:10px;">
<div class="col-xs-6 col-sm-6 col-lg-6 col-md-6">
<button ejs-button [disabled]="! book.valid">Submit</button>
</div>
<div class="col-xs-6 col-sm-6 col-lg-6 col-md-6">
<button ejs-button (click)="onreset($event)" type="reset" [disabled]="!(book.valid)">Reset</button>
</div>
</div>
</form> |
Hi Team,
Good Morning,
I am currently working on Scheduler (Syncfusion Angular) having couple issues, can any one can help me with that ?
1)how to apply Validation for Dropdown functionality
2)while editing the recurring event(single or a series), not sure how to save in Mongo, so that UI can populate the data right.