This project has moved and is read-only. For the latest updates, please go here.

Cascading dropdown woes

Jul 28, 2010 at 7:04 PM

I have created three lists exactly as I see them here: including data insuring the lookup columns are pointed where they should be.

I also used the script exactly as it is on that page as well:

$(document).ready(function () {

            relationshipList: "Regions",
            relationshipListParentColumn: "Country",
            relationshipListChildColumn: "Title",
            parentColumn: "Country",
            childColumn: "Region",
            debug: true
            relationshipList: "States",
            relationshipListParentColumn: "Region",
            relationshipListChildColumn: "State",
            relationshipListSortColumn: "ID",
            parentColumn: "Region",
            childColumn: "State"

I receive the error:

parentColumn: Country

Column not found on page

I believe I am missing something very basic that will be embarrassing when we figure it out.  Does SPServices.SPCascadeDropdowns extend dropdowns or are they a control unto themselves?

SharePoint 2010 Webpart in Visual Studio
Windows Server 2008R2

My thanks in advance,


Jul 29, 2010 at 3:57 AM
Edited Jul 29, 2010 at 3:58 AM

The error message is saying that you don't have a column on your form called "Country". Once you've set up all of your relationship lists, you need to use them as the sourse for lookup columns on another list. That's where you'll call SPCascadeDropdowns on the form(s).  So the three lists [Countries, Regions, States] end up just being "helper" lists for a fourth list. In my usual example, it's a list called Sales Opportunities where I want to track where the opp is coming from.

Hope this helps.


p.s. As you can see in the SPServices documentation, SPCascadeDropdowns should work fine in SP2010.

Jul 29, 2010 at 4:05 PM

Marc, forgive me if I am coming at this from a completely wild trajectory. :) 

I am not using designer at all. I have a Visual Studio Web part that starts like so:

using System.ComponentModel;
using System.Web.UI.WebControls.WebParts;

namespace CNIC.Training.SPSvcsTest
    public class SpSvcsTest : WebPart
        protected override void CreateChildControls()

I don't 'have' any columns at all.  All I have are a few lists and some script that i am trying to create dropdowns with.  If I am trying to use the tool in a way it was not designed for then please let me know.

My humble thanks in advance,

Jul 29, 2010 at 4:09 PM

Odds are good that this won't work, then. The script is looking for specific constructs in the DOM, and your Web Part is unlikely to have those constructs. Obviously, there's no way I can predict that sort of customization in my code.


Jul 29, 2010 at 7:59 PM

Thats Great, it answers my issue.  Thanks for the support! 

Jul 30, 2010 at 4:56 AM

You bet. Sorry it won't work for you...