Add a CascadingDropDownListFieldWithFilter field from the the code behind

Jul 15, 2010 at 10:31 AM

I'm trying to add a CascadingDropDownListFieldWithFilter field from the the code behind.

CascadingDropDownListFieldWithFilter fldCountry = new CascadingDropDownListFieldWithFilter(docsList.Fields, "CascadingDropDownListFieldWithFilter", "Country");

 

after this statement is run the fldCountry has all the public properties throwing a System null reference exception.

Any ideas?