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,
I am discussing this issue with our developer to gain a better understanding of how to achieve this behavior.
I will have another update for you by the end of Tuesday.
I see from your comment in your cboCustomer_SelectionChanged() method, that you are planning on cascading your WebDropDowns. If you need to cascade a WebDropDown off of the selection of this WebDropDown, I recommend handling the client side SelectionChanged event and calling loadItems() on the cascading WebDropDown. The loadItems() function fires a postback and triggers the server-side ItemsRequested event to help bind data to the next WebDropDown.
Please see the following documentation and sample for more information on setting up cascading WebDropDowns.
http://help.infragistics.com/NetAdvantage/ASPNET/2013.1/CLR4.0/?page=WebDropDown_Cascading_WebDropDown_Controls.html http://ko.infragistics.com/products/aspnet/sample/drop-down/cascade
The issue with Tab and Enter not triggering the postbacks still exist using these methods and I am currently disussing this with my supervisor for further assistance on this.
I will have another update for you by Thursday.
I am continuing to look into this issue further and I will need a little more time to research this.
I will have another update for you by Friday.
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
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.