Wiki

Articles tagged with "filter"X
Displaying 1-9 of 9 result(s).

Load the Yii-Bootstrap Extension on Specific Actions

Created 6 months ago by chuntleyHow-tos5 comments – viewed 6,819 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

CGridView, CListView and CActiveDataProvider

Created 9 months ago by softarkTutorials11 comments – viewed 35,099 times – ( +30 )
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

Created 11 months ago by maigretHow-tos0 comments – viewed 3,076 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:

Searching and Sorting by Count of Related Items in CGridView

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

Using CJuiDatePicker for CGridView filter

Created about a year ago by softarkHow-tos3 comments – viewed 16,602 times – ( +17 )
We can use a CJuiDatePicker for a CGridView inline filter.

CGridView keep focus on the control after filtering

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

Using filters with CGridView and CArrayDataProvider

Created about a year ago by marcovtwoutHow-tos12 comments – viewed 25,756 times – ( +12 )
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

Filter / Search with CListView

Created about a year ago by JohnPollardHow-tos6 comments – viewed 18,584 times – ( +21 )
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

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

Created 2 years ago by MukkeTips1 comment – viewed 15,375 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.