Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Pressing Enter in ComboBox does not fire either selectedindexchanged or textchanged events

Posted on 2012-03-23
5
Medium Priority
?
1,158 Views
Last Modified: 2012-06-15
Gurus,

Issue:
User has to hit the ENTER key twice to have a formview update with the typed item within an ComboBox

Desired Results:
Once user types the name of the item list and hits ENTER, the formview should update with the updated information

Setup:
AJAX ComboBox
- Located within <form> section and outside of formview
- AutoCompleteMode="SuggestAppend"
- AutoPostback = "True"
- DropDownStyle = "DropDownList"

Current VB Code:
Private Sub ComboBox_Guest_KeyDown(ByVal KeyCode As Integer, ByVal Shift As Integer)

        If KeyCode = 13 Then
            Call DatabindFormView()
        End If

End Sub
0
Comment
Question by:acancel
  • 2
5 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37765025
Try moving the keydown event to javascript and doing a postback if keycode is 13.
0
 

Author Comment

by:acancel
ID: 37981281
how would i do that. i apologize for delay, was out of the country
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 2000 total points
ID: 37982363
0
 
LVL 19

Expert Comment

by:Amandeep Singh Bhullar
ID: 38087030
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question