O'Reilly logo

Ext JS 4 Web Application Development Cookbook by Stuart Ashworth, Andrew Duncan

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

Creating a DataView bound to a data store

DataViews are a very useful component that allow us to render markup that is bound to an Ext.data.Store instance. This means that the View renders a defined template for each of the Model instances within the store and will automatically react to changes made to the store, and its data, by refreshing the rendered markup to reflect these changes.

By using this approach we can concentrate on manipulating data without needing to worry about how that data is presented because the framework takes care of it for us.

In this recipe, we will create a simple store containing data about software bugs and bind it to a data view that will display each of the bugs. We will then demonstrate how changes to the underlying ...

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