O'Reilly logo

Ext JS Data-driven Application Design by Kazuhiro Kotsutsumi

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

Loading the grid and implementing toolbar buttons

Generally speaking, a grid is not a grid if it can't read data. For the time being, let's just read the data from the database and display it in the grid (source file: 05_loading_the_grid_and_implementing_toolbar_buttons/php/classes/MyAppQuotation.php).

Here we'll implement the getGrid method for MyAppQuotation.php that was returning empty data.

Note

The code for this is a little bit long, so please refer to the source file to see the code.

If we put any old data in the database it will be displayed. But, because the items we want to display have increased slightly, we need to amend the JavaScript source code. Add the two files addr and note to the Quotation model (source file: 05_loading_the_grid_and_implementing_toolbar_buttons/app/model/Quotation.js ...

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