Chapter 6. Using a Grid for Data and Relations

We will cover the following topics in this chapter:

  • DataProvider for grids
  • Using grids
  • Custom columns in grids:
    • For example: displaying a reservations list by clicking on a customer grid row
  • Filters in GridView
  • Displaying and filtering ActiveRecord relational data in a grid's column
  • Summarizing the footer row in a grid:
    • For example: extending GridView to customize the footer row in a grid
  • Multiple grids on one page:
    • For example: managing reservations and room grids in the same view

Introduction

In the previous chapter, you learned how to get data from databases. Now it is time to use a fundamental widget provided by framework: GridView. The first topic we'll cover is data input format expected by a grid. Then ...

Get Yii2 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.