Does anybody know how to achieve a cascading dropdownlist in an editor web part?
3 Answers
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.
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.