I’m looking to write a fairly complex application that would involve having several “base” items (a base form, a base grid, etc.) that other items would inherit from in order to follow DRY. These base items would have common events that all inheriting items would fire. Since this is the case, I’ll need some kind of base controller that will listen for these items events.
What’s the base way to set up a controller to easily be inherited / extended?
This is exactly what we’re doing in our project. Here are couple samples for grid/controller combo:
BaseGrid:
BaseController:
ChildGrid:
ChildController:
Hope these couple samples help. The basic ideas are these:
controllers