BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
(args.form.elements.namedItem('CustomerID') as HTMLInputElement).focus();
<ng-template #editSettingsTemplate let-data>
<div class="e-float-input e-control-wrapper" [ngClass]="{'e-error': CustomerID.invalid && (CustomerID.dirty || CustomerID.touched)}">
<input [(ngModel)]="orderData.CustomerID" required id="CustomerID"name="CustomerID" type="text" #CustomerID="ngModel">
<span class="e-float-line"></span>
<label class="e-float-text e-label-top" for="CustomerID">Customer Name</label>
</div>
</ng-template> |
actionComplete(args: DialogEditEventArgs): void {
if((args.requestType === 'beginEdit' || args.requestType === 'add')) {
args.form.ej2_instances[0].rules = {};
if (args.requestType === 'beginEdit') {
// Set initial Focus
(args.form.elements.namedItem('CustomerID') as HTMLInputElement).focus();
}
}
} |