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?

1 Answer 1


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.