SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anybody know how to achieve a cascading dropdownlist in an editor web part?

share|improve this question
Do you mean a 'Content Editor WebPart'? Is so, than you have to write your own JavaScript (try it with jQuery). – Dribbel Sep 16 '11 at 14:26
sorry, custom editor web part – Nick Kahn Sep 25 '11 at 16:46

Check out Marc Anderson's SPServices library, there is a cascading drop down operation. You could also achieve that functionality through InfoPath forms, but not in the web enabled forms I believe.

share|improve this answer

I assume you are talking about a custom editorpart (toolpanepart). I've done this before using dropdownlist controls and implementing icallbackeventhandler to ajax load the cascading dropdowns. The only gotcha I ran into was a pagevalidation error. I got around that by using the Page.ClientScript.RegisterForEventValidation for my new values of the dropdownlist before my partial postback was complete (in the GetCallbackResult method).

If you don't need dynamic cascading dropdowns, as in the data will always be the same, then you can create an htmlgenericcontrol that has all of your html data in it like you normally would on a html page. I don't think you have to worry about naming conflicts as much with this because you can only have one toolpart pane open at a time.

share|improve this answer
do you have sample code? – Nick Kahn Sep 25 '11 at 16:45
For which solution i outlined above? – Steve Lineberry Sep 26 '11 at 1:02

Try RichControls for Sharepoint 2010, an open source project hosted github. enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.