Hello there,
I am trying to intervene when a user makes a new selection in the igCombo box and there are still pending changes on the page.
I find that I cannot use the "igcomboselectionchanging" event, because this also fires when the user is entering text to find and item (using autocomplete).
so I subscribed to the igcombodropdownclosing event like this to handle all igCombo closing events: $("body").on("igcombodropdownclosing", handleClosing);
this is the handleClosing function:
function handleClosing(evt, ui) {
if (!confirmContinueWithPendingChanges()) {
ui.owner.closeDropDown();
return false;
} else {
pageState.clearPendingChanges();
return true; } }
As you can also see, I use ui.owner.closeDropDown(); explicitly here because when returning false in the dropdownclosing event, the dropdown seems to be broken. I guess this is a bug?! ui.owner.closeDropDown() is NOT triggering the second call of igcombodropdownclosing tho!
So the problem is, everything is working as expected, ONLY, the "igcombodropdownclosing " event is triggered twice!
Can you please investigate this problem and provide me with a solution OR provide me with another way to achieve what I'm trying to do?
Please also ask further if you need more info/code.
Greetings, John
also, I made a basic jsfiddle setup that confirms the double call of "igcombodropdownclosing": http://jsfiddle.net/e3b1gz45/
Hello,
Thank you for reporting this.
I have asked our engineering staff to examine this further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of 205191. A support case is created on your behalf with number CAS-163575-D6M0X1 , so that you can be notified when the bug is fixed. You can find your active cases under Account - Support Activity in our website. Select your ticket and go to Development Issues tab to view the status of related bugs.
Also you can use dropdownclosed event, as I noticed, this event is fired only once.
http://jsfiddle.net/zdravko/e3b1gz45/1/
Let me know if I may be of further assistance.
to clarify: what I'm actually trying to do is react when users make a different SELECTION by using the MOUSE or ENTER to select an option from the igCombo control, NOT when they start typing in textbox!
so maybe I need a more advanced way of handling "igcomboselectionchanging" ?
any updates on this ?
Hello John,
About your question, this is the correct way to cancel event propagation and it is expected the drop down to remain opened, after all the closing of the drop down is interrupted. My suggestion is to call closeDropDown, as you are doing :)
About the dropdownclosing event, this is the right place to do the stuffs that you described. The issue that was submitted is fixed, and now the event is firing only once, not twice, and this fix will be available within the next service release which is expected to be at September 11, 2015:
http://www.infragistics.com/support/service-releases
Hello Zdravko. Good to hear that, looking forward to 9/11.
Greetings!
Could you please let me know what is the status of the issue after installing our latest SR.
Thank you!