We have such an example published as CodeLibrary
project but it covers the Silverlight custom controls. You can use it as reference and find it here
Note in HTML your custom wrapper should extend any of the base HTML controls available at ArtOfTest.WebAii.Controls.HtmlControls
namespace. The basic one all the controls extend is HtmlControl
but you can use any other to benefit from its implementation (such as HtmlContainerControl
for containers for example).
You may also need:
- Two constructors -- the first to be empty (extending base()) and the second to pass in element (type Element) to the base class.
- Initialize a locator expression in the constructor that should be returned by overriding the LocatorExpression property. You can review the FindExpression topic for additional info.
- Override the AssignElement method for any sub elements initialization.
Please let us know if you have further questions.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items