Solved

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

Posted on 2012-03-23
5
1,113 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Javascript reference in ExcelWebAddIn Project 2 33
Expanding/Collapsing Tree on SharePoint List 29 66
Error Handler 8 42
VB.net SQL Connection String Read Only 4 19
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
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…

738 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