I am using ig web drop down having MultipleSelection enabled and MultiSelectionType is Checkbox.
I am using infragistics functions getOldSelection() and getNewSelection() based on which i have developed my logic such that I have option All in the drop down and on clicking on All i am able to check all check boxes and on unchecking All i m unchecking all the check boxes.
This is working fine when i do check and uncheck of check box normally.
But when i double click on the check in the drop down, the infragistics functions getOldSelection() and getNewSelection() are returning null.
So, my logic is failing as i am dependent on these two functions getOldSelection() and getNewSelection() of the webdropdown to perform my functionality
I am using the code as below,
var oldItems1 = eventArgs.getOldSelection();
var newItems1 = eventArgs.getNewSelection();
// to unselect All
if (sender._activeItem.get_value() == 'All' && oldItems1[0] != null && oldItems1[0].get_value() == 'All') {
for (var i = 1; i < sender.get_items().getLength(); i++) {
var item = sender.get_items().getItem(i);
item.unselect();
item.get_element().childNodes[0].checked = false;
}
// to select All
else if (sender._activeItem.get_value() == 'All' && newItems1[0] != null && ((oldItems1[0] == null && newItems1[0].get_value() == 'All') || (oldItems1[0].get_value() != 'All' && newItems1[0].get_value() != 'All'))) {
item.select();
item.get_element().childNodes[0].checked = true;
The above code is working fine if i check and uncheck on the 'All' Check box
The problem is not with the code, u can observe i m using the Infragistics functions,
getOldSelection()
getNewSelection()
to perform my logic. The above two functions are returning null values when user is double clicking on the Check box and so the code fails. But when user check and unchecked the check boxes the above functions are returning the corresponding selections.
Thank You.
kpavan_prokarma.
Hi kpavan_prokarma,
I am following up to check whether you are still experiencing any issues. Please do not hesitate to contact me if you need further assistance.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://es.infragistics.com/support
In order to be able to investigate the cause of your issue I would need to see the javascript code you have used to implement the "select All" functionality.
You might find useful information in the following thread as it discusses a similar scenario:
http://forums.infragistics.com/forums/t/55898.aspx
Please let me know if this helps.