Hi
I am trying to use the Webdropdown (DD) cascading feature, but the client side code does not seem to be working correctly. I am wanting to change data in DD1 which then updates data in DD2. I followed the exact outline as shown on the online documentation. Here is what happens:
The javascript function is being hit by the client side event "selectionChanged" of DD1. I have tested it with the following code:
function portalChanged(sender, e) {
//Gets reference to the productDropDown
alert("Reached 1")
var DD2Temp= $find("DD2");
alert("Reached 2")
alert(e.getNewSelection()[0].get_value())
DD2Temp.loadItems(e.getNewSelection()[0].get_value());
alert("done")
}
Basically Alert 1, Alert 2 and Alert 3 fire correctly when I make a selectionChange on DD1. It seems to HANG when it tries to call the "loaditems" method.
To go even further I have loaded all the JS files that ship in the ASPNET_AJAX folder into the page directly to see if I am missing anything. Still not working.
Any ideas?
Regards
Andrew
Hi Andrew,
That's quite strange - is an AJAX request executed when loadItems is called for the second dropdown ?
Thanks,
Angel
Hi Angel
Forgive my ignorance I am a little new to this. How do I tell if an AJAX request is executed?
My version is 1003 not 2017. I downloaded 2009.2 three days ago so I should have the latest stuff. Where do I get the latest scripts from? On aside when I look into the igDropDown js file there is no LoadItems function there. It may be because I am not using version 2017.
loadItems is present from the first volume release the control was introduced - 9.1.1015. The problem is with the actual installation scripts. There is another file igDropDown.js , which is for a general javascript drop down behavior (just opening a dropdown container from a target element). This is like framework stuff, but because the files are with the same names, the actual control javascript got overwritten by the other one. I will follow up with our Installation team and let you know when we fix this. In the meantime you can get the contents for the control's DropDown javascript, and create another file in that folder, with a different name. I suppose it should work.
When you say get the contents for the controls DropDown javascript I assume you mean load up a page where the feature is working and then view the source of the page. Scroll thorugh all the javascript files in that page until I find the one with the LoadItems function in it. Copy that data and create a new .js file with the copied data. Inject this new file into the page?
If this is the case, I have done it but the client side call still hangs.
Thanks
Ok i will investigate this. Thanks again for your feedback,
I'm attaching a tutorial about how to add Infragistics controls to DotNetNuke. Hope it's useful to you.