Book Image

Mastering Ext JS

By : Loiane Groner
Book Image

Mastering Ext JS

By: Loiane Groner

Overview of this book

<p>Ext JS 4 is a JavaScript framework that provides you with the resources to build multi-browser, high-performance, and rich Internet applications.<br /><br />Mastering Ext JS is a practical, hands-on guide that will teach you how to develop a complete application with Ext JS. You’ll begin by learning how to create the project’s structure and login screen before mastering advanced level features such as dynamic menus and master-detail grids, before finally preparing the application for production.<br /><br />Mastering Ext JS will help you to utilize Ext JS to its full potential and will show you how to create a complete Ext JS application from the scratch, as well as explaining how to create a Wordpress theme.</p> <p><br />You will learn how to create user and group security, master-detail grids and forms, charts, trees, and how to export data to excel including PDF and images, always focusing on best practices.</p> <p><br />You will also learn how to customize themes and how to prepare the application to be ready for deployment upon completion. Each chapter of the book is focused on one task and helps you understand and master an individual aspect of the application.</p> <p><br />By the end of the book, you will have learned everything you need to know to truly master Ext JS and to start building advanced applications.</p>
Table of Contents (20 chapters)
Mastering Ext JS
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Index

The films controller


In the previous chapters, we have gone through some examples of how to save data. We used Form submit, Ajax request, and also the writing resource from the store. In this chapter, let's focus on the functionalities we have not implemented yet. But don't worry, the complete implementation is available in the source code distributed with this book.

Loading the existing film information within the Edit form

We have loaded a Form panel using the loadRecord method. Let's try a different approach now. Let's try using the setValues method. This is also useful because we have a CheckBox group, and it can be a little tricky to load their values on the Form panel. So when the user selects a record from the Film grid panel and clicks on the Edit button, we will open the Edit window and load its values. For this reason, we need to listen to the click event of the Edit button and implement a method that receives the button as parameter:

var grid = button.up('filmsgrid'),
record = grid...