Wiki

Articles tagged with "filter", sorted by viewsX
Displaying 1-10 of 13 result(s).

CGridView, CListView and CActiveDataProvider

Created 2 years ago by softarkTutorials21 comments – viewed 81,293 times – ( +45 ) – 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.

Using filters with CGridView and CArrayDataProvider

Created 3 years ago by marcovtwoutHow-tos30 comments – viewed 47,871 times – ( +21 ) – version 1.1
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

Using CJuiDatePicker for CGridView filter

Created 2 years ago by softarkHow-tos12 comments – viewed 33,098 times – ( +22 ) – version 1.1
We can use a CJuiDatePicker for a CGridView inline filter.

Filter / Search with CListView

Created 3 years ago by JohnPollardHow-tos7 comments – viewed 31,533 times – ( +27 ) – 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.

Searching and Sorting by Count of Related Items in CGridView

Created 2 years ago by softarkHow-tos13 comments – viewed 30,432 times – ( +29 ) – version 1.1
Let's say we have two models and relation between them:

Search method of a model for filters when using dates - unixtimestamp in database

Created 3 years ago by MukkeTips1 comment – viewed 22,657 times – ( +10 ) – version 1.1
I ran into a problem and on irc we worked it out. Since there is a lack on information on filters in genral i thought i'd start sharing all my findings, might be usefull for other people.

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

Created 8 months ago by Kartik VTutorials19 comments – viewed 15,896 times – ( +34 / -4 ) – version 2.0
This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

Load the Yii-Bootstrap Extension on Specific Actions

Created about a year ago by chuntleyHow-tos5 comments – viewed 14,923 times – ( +10 ) – version 1.1
A big problem I've hit with the Yii-Bootstrap extension is that all AJAX requests are initializing Bootstrap because of preload. This is a huge waste of resources, especially when using AJAX-based file uploaders that split the file into chunks. Large file uploads using that method could be initializing bootstrap hundreds of times.
tags: bootstrap, filter

How to use bizRules in standard accessControl filter

Created about a year ago by redguyHow-tos8 comments – viewed 8,646 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.

CGridView keep focus on the control after filtering

Created 2 years ago by jayalaHow-tos2 comments – viewed 7,733 times – ( +6 ) – version 1.1
You can find the reason why I wrote this article here.
tags: CGridView, filter