Greetings. We're having an issue w/ the WebDropDown. We currently have it set to autopostback and need it to be in DropDown mode such that the user can start typing the desired option. As soon as the user types the first letter, the dropdown closes. Is there any way around this? We've tried almost every flag we can think of without luck. No matter what flag is set, as soon as the control is set to autopostback, the dropdown will consistently close as soon as the first key is pressed.
Have tried the following:EnableAutoCompleteFirstMatch=false, EnableCustomValues=false, EnableClosingDropdownOnSelect=false, setting AutoPostBackFlags SelectionChanged=on and ValueChanged=off, etc.
Thanks,TwinEngines
Hi TwinEngines,
Thank you for posting on our forums!
The following code can be used to prevent an item from being selected when the input matches to it. The AutoSelectOnMatch property prevents the SelectionChanged AutoPostbackFlag from triggering in this scenario.
<ig:WebDropDown ID="WebDropDown1" runat="server" Width="200px" TextField="Name" AutoSelectOnMatch="false" ValueField="EmployeeID"> <AutoPostBackFlags SelectionChanged="On" ValueChanged="Off" /> <DropDownItemBinding TextField="Name" ValueField="EmployeeID" /> </ig:WebDropDown>
If you need further assistance with this, please let me know.
I'm sorry but that doesn't solve the issue. We can now type in a value to the dropdown, but the postback never fires. Tabbing off of the dropdown nor hitting the Enter key causes a postback.
Our Dropdown:
<ig:WebDropDown ID="cboCustomer" runat="server" Width="190px" CSSclass="ig_Control igdd_Control TE_left" TabIndex="2" AutoSelectOnMatch="false" > <AutoPostBackFlags SelectionChanged="On" ValueChanged="Off" /> </ig:WebDropDown>
Our SelectionChanged Event:
Private Sub cboCustomer_SelectionChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboCustomer.SelectionChanged
'Cascade other dropdowns here
End Sub