Postback happening everytime up and down arrow keys are used for scrolling through dropdown.

1 Answer 69 Views
ComboBox
Soumita
Top achievements
Rank 1
Soumita asked on 08 Jun 2023, 12:00 PM
When scrolling through a dropdown using keyboard arrows, for every keydown or up a postback is happening and before the postback returns a response , the state of the dropdown is getting set. How can I prevent the postback for every keyup or keydown. My scenario is to revert the newly selected value to the old value whenever user scrolls through the dropdown using arrow keys. 

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 12 Jun 2023, 07:40 AM

Hello Soumita,

When using the arrow keys within the popup of the DropDownList, the onChange event will fire, so if you have some logic that initiates a postback within the onChange event, the behavior that you are observing would be expected.

What I would suggest as an alternative is to handle the onBlur event of the DropDownList and execute your logic there if the value has changed:

If the issue differs, please share an example with a simplified version of your scenario that replicates the issue, so we can test and debug it locally.

 

Regards,
Konstantin Dikov
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.
Tags
ComboBox
Asked by
Soumita
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or