We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How do I change the tab order on a custom template (dialog mode)

Thread ID:

Created:

Updated:

Platform:

Replies:

142425 Feb 3,2019 06:17 PM UTC Feb 6,2019 01:07 PM UTC Angular - EJ 2 1
loading
Tags: Grid
Wolfgang Kamir
Asked On February 3, 2019 06:17 PM UTC

I am using the angular grid with a custom ng-template for editing.

On the template I got normal <input /> elements as well as one <ejs-numericbox />.

I would like to change the order of tabindex.

How can I set the tabindex on the <ejs-numericbox /> as well as the "Save" and "Cancel" buttons accordingly?

Thanks,
Wolfgang

Pavithra Subramaniyam [Syncfusion]
Replied On February 6, 2019 01:07 PM UTC

Hi Wolfgang, 
 
Greetings from Syncfusion. 
 
From this query, we found that you want to set the tabindex for input element and NumericTextBox. For the input element you can provide the tabindex directly in html tag like as following code snippet, 
 
<input formControlName="OrderID" tabindex="2" data-msg-containerid='OrderIDError' id="OrderID" name="OrderID" type="text"> 
 
For NumericTextBox, we suggest to use created event of the NumericTextBox to provide the tabindex like as following code snippet, 
 
Html: 
 
<ejs-numerictextbox #numeric formControlName="Freight" (created)='onCreated($event)' id="Freight" placeholder="Freight" floatLabelType='Always'></ejs-numerictextbox> 
 
TypeScript: 
 
export class DialogReactiveFormComponent implements OnInit { 
    @ViewChild('numeric') numeric: NumericTextBox; 
 
 
    onCreated(args){ 
      this.numeric.element.setAttribute('tabindex', "1"); 
    } 
   } 
 
 
If we misunderstood your query, please provide more details about your requirement for further assistance. 
  
Regards,  
Pavithra S 


CONFIRMATION

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;