Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1490
2014.1 release changed the selectionChanged event
posted

I have a combo box that was working fine before upgrading to IgniteUI 2014.1. I was using the selectionChanged event to determine when the value in the combo was changing and then doing some processing based on that. After upgrading to IgniteUI 2014.1, this selectionChanged event is fired immediately after typing a single letter in the combo box. 

For example, if I have 2 items in the combo, "Active" and "Company", and I drop down the combo and type the letter "c", the selectionChanged event is fired immediately and the "value" on the control is "Active", even though I was going to type "Company". If I continue typing and finish "company" and hit enter to select that value from the drop down, it never seems to update the "value" to Company - and it performs the processing on my screen for "Active" field instead of "Company" field (even though drop down now has company in it).

Did something change in 2014.1 release for this? Is there a different event I should be using? I am creating the combobox via MVC and here is the code that is creating it: 

comboBoxHtml = HtmlHelperExtensions.Infragistics(this.Helper)
.Combo()
.ID("mycontrolname")
.Width("100%")
.Height("25px")
.AllowCustomValue(false)
.CaseSensitive(false)
.CompactData(false) // required for the item template
.Disabled(false)
.EnableClearButton(true)
.FilteringCondition("contains")
.FilteringType(ComboFilteringType.Local)
.HtmlAttributes(customHtmlAttributes)
.ItemTemplate("<div class='comboTemplate'>"
+ "<div class='comboInfo'>"
+ "<span class='emphasizedText'>${DisplayText}</span>"
+ "<div><span class='deEmphasizedText'>${" + (isDescUsedAsDisplay ? "Identifier" : "Description") + "}</span></div>"
+ "</div></div>"
)
.NullText("field")
.RenderMatchItemsCondition(ComboRenderMatchItemsCondition.Contains)
.SelectedValues(null)
.TextKey("DisplayText")
.ValueKey("Identifier")
.DataSource(metadataList.OrderBy(x => isDescUsedAsDisplay ? x.Description : x.Identifier))
.DataBind()
.Render();