Wiki

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

Searching and Sorting by Count of Related Items in CGridView

Updated about a month ago by softarkHow-tos10 comments – viewed 16,162 times – ( +21 )
Let's say we have two models and relation between them:

Filter / Search with CListView

Updated 4 months ago by JohnPollardHow-tos5 comments – viewed 17,625 times – ( +21 )
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

Using CJuiDatePicker for CGridView filter

Updated 4 months ago by softarkHow-tos3 comments – viewed 15,541 times – ( +16 )
We can use a CJuiDatePicker for a CGridView inline filter.

Load the Yii-Bootstrap Extension on Specific Actions

Updated 5 months ago by chuntleyHow-tos5 comments – viewed 6,270 times – ( +8 )
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

Using filters with CGridView and CArrayDataProvider

Updated 7 months ago by marcovtwoutHow-tos12 comments – viewed 24,422 times – ( +10 )
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

CGridView, CListView and CActiveDataProvider

Updated 8 months ago by softarkTutorials11 comments – viewed 32,215 times – ( +28 )
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.

Alternative wildcard characters CDbCriteria

Updated 10 months ago by maigretHow-tos0 comments – viewed 2,943 times – ( +1 )
In SQL, wildcard characters can be used in "LIKE" expressions; the percent sign (%) matches zero or more characters, and underscore (_) a single character. Sometimes users are not familiar with these or they are using different ones like (*) and (+) similar to regular expressions. My colleages do so and then i decided to add this feature by extending CbCriteria. Especially adding a new parameter $wildcard_chars to the method addSearchCondition to replace them if needed with standard SQL characters:

CGridView keep focus on the control after filtering

Updated about a year ago by jayalaHow-tos0 comments – viewed 5,118 times – ( +4 )
You can find the reason why I wrote this article here.
tags: CGridView, filter

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

Updated about a year ago by jwernerTips1 comment – viewed 15,032 times – ( +10 )
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.