Solved

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

Posted on 2012-03-23
5
1,063 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
Comment Utility
Try moving the keydown event to javascript and doing a postback if keycode is 13.
0
 

Author Comment

by:acancel
Comment Utility
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
Comment Utility
0
 
LVL 19

Expert Comment

by:Amandeep Singh Bhullar
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now