Solved

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

Posted on 2012-03-23
5
1,099 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 500 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jquery tab header text 1 23
JQuery Syntax... 4 37
Why use this lambda? 12 37
formvalidation.io validate form on class click 4 16
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

839 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