官术网_书友最值得收藏!

Summary

In this chapter, we had been working with data; we learned how to create models with fields, mappings, validations, and relationships. We also worked with a collection of models using the store class, and learned the basics for retrieving data using proxies, JSON readers, and XML readers. In the upcoming chapters, we will learn how to handle more advanced features available in the stores.

It's important to mention that every widget in Ext JS that displays data uses a store and models (Grids, Combos, Data views, and so on) to manage all the data. When we modify a model in our store, the widget will automatically refresh its view. For example, if we have a grid and we want to delete a record, we only need to use the remove method from the store. By doing this, the grid will automatically update the rows and the deleted rows won't appear anymore.

In the next chapter, we are going to learn about events, and how we can respond to the user interaction. So far, we haven't used events, but they are one of the most important parts of the JavaScript development world.

主站蜘蛛池模板: 牡丹江市| 寿宁县| 珠海市| 海宁市| 中方县| 尖扎县| 平乡县| 正镶白旗| 五寨县| 旺苍县| 理塘县| 昭通市| 凯里市| 夏河县| 鄂托克旗| 桂东县| 垫江县| 泾川县| 昭平县| 新密市| 乐陵市| 大悟县| 新建县| 荆州市| 崇仁县| 鲁山县| 翼城县| 巧家县| 襄垣县| 宁化县| 莱州市| 汝阳县| 牙克石市| 临高县| 康定县| 寿宁县| 中宁县| 临沧市| 贡觉县| 二连浩特市| 开鲁县|