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

Binding Stores and Records to a form

In Chapter 5, Working with Data, we saw Stores working with Models and Fields. These are then bound to data-bound controls. A grid column, for example, used a DataIndex property to associate a column with a Store's Fields. With a form, the Name can serve the same purpose. With a grid, it automatically loaded the store's records into the grid for you. But you can also reuse a store with a form, with a small manual step to load a record into a form. This means you can achieve this kind of UI if you want:

Binding Stores and Records to a form

To create the above, we first create a store, as we have seen in many previous examples:

<ext:Store ID="Store1" ...

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