This option to create custom components is the most basic approach and can work for simple, lightweight cases. The basic idea is as follows:
Create a factory or builder class to create an instance of your component.
Provide decorators or similar methods to add features for different uses.
Your component is not an extension of an Ext.NET control, but just a code-behind representation of what you might build using ASP.NET Web Forms markup or the MVC template.
Any JavaScript handlers go into a JavaScript file that you include manually.
Consider our earlier financial data grid we used in Chapter 6, Introducing GridPanels, for the server-side paging example. We will create the same component in code-behind:
public class FinancialGridBuilder { private const int InitialPageSize = 10; private const string GridId = "FinancialGrid"; public GridPanel Build() { return new GridPanel { ID = GridId, Title = "Simple Grid", ...