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?
Following my previous post I went into the default ASPNET app where the drop down is working and found the javascrip that is being loaded into the page which contains the LoadItems function. The refernce to the javasctip is:
http://localhost:65095/WebSite6/ScriptResource.axd?d=fow69QfyzXTzwWhktXU2pm1nYopeC7A919CXFv2zJ5BBAs9X6zp2q4nL1OqCDUBc7jsA6VxAlq7GiW3uzkIOAYC3oHvEEjE8r7pGr4f63ubfwpYXo6Pn8lLOpC0YcyR6m5MnYY9oFX-0KqRshkGlpSy7QtLrBFpZxyX_je5xTRA1&t=ffffffffba7b83fc
I am not sure if that is any help at all. But this does support my assumptions in my previous post that in the default ASP.NET app the javascript being brought into the page contains the LoadItems function. What I need to know is where are these javascrips files found so I can ensure they are being injected into the Dotnetnuke page?
Hello Andrew,
I guess the confusion comes from the fact that in the root Scripts folder, there are the scripts for the non MS-AJAX controls only. The Aikido (Microsoft AJAX) scripts are in the zip file called:
ASPNET_AJAX_Scripts.zip
There is folder structure that needs to be preserved when importing these scripts in DotNetNuke.
The full location of the Scripts folder I am looking at is this one:
C:\Program Files (x86)\Infragistics\NetAdvantage 2009.2\ASP.NET\CLR3.5\Scripts
So after you unzip this zip file, the correct dropdown script is this one:
C:\Program Files (x86)\Infragistics\NetAdvantage 2009.2\ASP.NET\CLR3.5\Scripts\Infragistics35.Web.v.9.2\9.2.20092.2017\9.2.20092.2017\igDropDown.js
where 2017 is the version i am using when checking this.
Hope it helps,
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
I'm attaching a tutorial about how to add Infragistics controls to DotNetNuke. Hope it's useful to you.
Not sure if this helps but I tried out the new WebHierarchicalDataGrid with a WebHierarchicalDataSource where the child bands are loaded only when the parent band is selected. This works fine. The child band data is fetched with no page postback taking place. AJAX seems to work fine in this scenario. Maybe there is something specific about the WebDropDown control that is causing the issue.
Ok i will investigate this. Thanks again for your feedback,