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

DataView

A DataView is one of the many data-bound controls that can use Stores and Models. It uses XTemplates to render data making it quite versatile.

Our first attempt

Let us make a variation of our earlier XTemplate example to show a few more capabilities. Suppose we want to show a list of employees (and quite a strange-looking bunch they are too!) similar to the following screenshot:

Our first attempt

The icons are courtesy of Dante Michael Afrondoza (http://www.smashingmagazine.com/2008/11/05/dressup-avatars-icon-set/). Let's look at how this was achieved.

Preparing the data

First, we will use a simple class to present an employee as follows:

public class Employee ...

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