Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Combo Box Initialization

$
0
0

I have a combo box on my page, defined thusly:

<act:ComboBox ID="cboTagNo" runat="server" DataSourceID="SqlDSTagNos" DropDownStyle="DropDownList"
                DataTextField="TagNo" DataValueField="ScaffoldEntryID" AutoCompleteMode="Append"
                CssClass="cboInputField2" >

This combo box happens to be in the footer row of a gridview (used for adding a new record). 

My problem is that I cannot type into the textbox component of the combobox control when the row is first displayed.  I click in the textbox, and it rejects any keystrokes I attempt to type.  However, if I click the button to make the dropdown list appear, it seems to 'initialize' something, because from that moment on, I can get rid of the dropdown list and autocomplete behaviour is exactly as expected within the textbox.

Is there some method I should be calling at some point in time to wake up this combo box, so that any typing that is attempted by the user will invoke the autocomplete logic without the user having to deliberately click the button to display the dropdown list?

I hope this makes some sense.

Thanks,

Kevin


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>