Wiki

Articles tagged with "filter", sorted by date (updated)X
Displaying 1-10 of 14 result(s).

Searching and Sorting by Count of Related Items in CGridView

Updated about a year ago by softarkHow-tos13 comments – viewed 41,088 times – ( +31 ) – version 1.1
Let's say we have two models and relation between them:

Clear CGridView Filters, Sort & Pager

Updated about a year ago by le_topHow-tos0 comments – viewed 7,388 times – ( +2 ) – version 1.1
Clearing CGridView filters and sort orders from the web pages, is usefull for the end user. Yii does not seem to propose a standard method. Furthermore, this is especially usefull when filters are "remembered" in the user's session.

How to use bizRules in standard accessControl filter

Updated 2 years ago by Maciej Li┼╝ewskiHow-tos8 comments – viewed 13,587 times – ( +3 ) – version 1.1
I assume you are familiar with accessControl standard filter. It allows you to separate privileges to run some action from action code itself. There is however one problem with most common usage - you cannot use bizRules, at least based on some parameters passed to 'checkAccess' just because it is hard to pass them in accessRules() result.

Filter & Sort by Summary Data in GridView Yii 2.0

Updated 2 years ago by Kartik VTutorials6 comments – viewed 31,026 times – ( +39 / -4 ) – version 2.0
This wiki explains how to add summary data from related models into your Yii Framework 2.0 gridview with filtering and sorting by the summary columns.

Filter & Sort by calculated/related fields in GridView Yii 2.0

Updated 2 years ago by Kartik VTutorials23 comments – viewed 98,824 times – ( +55 / -4 ) – version 2.0
This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

Caching strategy

Updated 2 years ago by CeBeHow-tos9 comments – viewed 6,099 times – ( +5 / -1 ) – version 1.1
Note: Before reading this wiki you should have read the caching part in the Yii guide
tags: caching, filter

Using CJuiDatePicker for CGridView filter

Updated 2 years ago by Kostas Apazidis (KonApaz)How-tos21 comments – viewed 47,158 times – ( +27 ) – version 1.1
We can use a CJuiDatePicker for a CGridView inline filter.

Using filters with CGridView and CArrayDataProvider

Updated 2 years ago by yugeneHow-tos33 comments – viewed 66,135 times – ( +22 ) – version 1.1
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

CGridView, CListView and CActiveDataProvider

Updated 2 years ago by softarkTutorials22 comments – viewed 110,595 times – ( +46 ) – version 1.1
CGridView (or CListView) together with CActiveDataProvider is a very powerful combination of the built-in tools of Yii. But how do they work together to accomplish their fantastic functions? And what are you expected to do to use them and to customize their behaviors? This article explains the very basics of them.

Filter / Search with CListView

Updated 3 years ago by JohnPollardHow-tos9 comments – viewed 39,778 times – ( +29 ) – version 1.1
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.