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. Image for the cookie policy date

On pressing the tab button show dropdown popup

I have a list of controls like textboxt dropdown in a form on pressing the tab button the controls of textbox goes to next  controls sameway 
How to show the dropdown popup On pressing the tab button in keyboard.
Thanks in Advance
Regards 
Thowfik

3 Replies

AB Ashokkumar Balasubramanian Syncfusion Team September 30, 2019 10:53 AM UTC

Hi thowfik, 
 
Good day to you. 
 
For this scenario, you can bind the keypress event to input element and using showPopup method to show the popup element in Drop down List component. Please refer the below code block. 
 
public onCreated(){ 
        this.listObj.element.addEventListener('keyup', function (e) { 
            if (e.keyCode === 9) 
                document.getElementById('games').ej2_instances[0].showPopup(); 
        }); 
    } 
 
 
Kindly check the above sample and let us know if you need any further assistance. 
 
Regards, 
Ashokkumar B. 



TH thowfik October 1, 2019 08:10 AM UTC

Hi,

Thanks for your valuable reply,

I need same for the  ejs-datepicker

Thanks in Advance
Regards 
Thowfik


BC Berly Christopher Syncfusion Team October 2, 2019 12:30 PM UTC

Hi Thowfik,

 
We have prepared the sample based on the requested requirement in EJ2 DatePicker and attached it below.

 

 
Regards,
Berly B.C




Loader.
Live Chat Icon For mobile
Up arrow icon