Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148078 | Oct 4,2019 08:06 AM UTC | Oct 7,2019 11:03 AM UTC | Angular - EJ 2 | 1 |
![]() |
Tags: ComboBox |
(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();
}
}
} |
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.