Creating a Control
I'm working through the examples in the docs for creating a custom control.
The documentation says ...
In Sitefinity, you can create your controls as standard ASP.NET custom controls or you can derive them from one of the built-in base classes - SimpleView, SimpleScriptView.
However, all of the follow documentation assumes that you are, in fact, deriving from SimpleView.
I would like to know how you proceed if you aren't going to do that. Specifically I want to know how to reference the template I create in my control. The examples suggest writing something like this ...
protected
virtual
RadRotator RadRotator1
get
return
base
.Container.GetControl<RadRotator>(
"RadRotator1"
,
true
);
Hi Stuart,
We have a control traverser that loops through controls collection which allows you to reference the control from the template as shown above. If you don't inherit from SimpleView or our controls you need to implement your own way for mapping templates and finding controls. In this case you can inherit from CompositeControl and implement INamingContainer.
Greetings,
Ivan Dimitrov
the Telerik team