SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

I have got a Custom Field Control in SP2007 (inheriting BaseFieldControl) with an ASP.NET TreeView control in the ascx. This works fine with checkboxes enabled so Users can select from the tree.

But I wanted to lazy load the child nodes when they click on the plus sign using the TreeNodePopulate event which I've added in the CreateChildNodes method.

When I click on the plus sign it does do a postback into the Get method of the Value overriden property, but it never gets to the EventHandler method.

Is this a common thing with EventHandlers in Custom Field Controls?

share|improve this question

So it seems that if I declaratively mapped the OnTreeNodePopulate instead of adding it programmatically on CreateChildControls it hooks up correctly. Figured I'd put this up if others had the same issue.

share|improve this answer

Your Answer


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