O'Reilly logo

Ext.NET Web Application Development by Anup Shah

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Extending Ext.NET controls

We can take the earlier example and improve on it considerably. It would feel quite natural to subclass the grid panel. Ext JS encourages this, and Ext.NET provides excellent support for this concept. The basic approach involves the following:

  • Subclassing the component on the .NET side
  • Subclassing the component on the Ext JS side (optional)
  • Adding custom CSS (optional)
  • Defining custom events (optional)
  • Adding MVC support (optional)

Let's see how this might work. To keep things simplified, we will extend the GridPanel to become a reusable financial grid panel.

Extending the Ext.NET class

In this approach we will do the following, while extending the GridPanel:

  1. Initialize the Store, Columns, and various other properties.
  2. Define ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required