Wiki

Articles tagged with "cgridview", sorted by ratingX
Displaying 51-60 of 65 result(s).

Insert a model record using CGridview

Created 7 months ago by KonApazHow-tos0 comments – viewed 3,585 times – ( +2 ) – version 1.1
CGridview displays existent rows of the table (using DataProvider)

Update specific cgridview html row after AJAX request

Created 7 months ago by KonApazHow-tos3 comments – viewed 5,608 times – ( +2 ) – version 1.1
After of model update (successfull or not) throught CGridView (check the below link) you probably need to updates the specific row html in cgridview (not entire cgridview)

two or more different collected data in one CGridView

Created about a year ago by KonApazHow-tos2 comments – viewed 6,044 times – ( +3 / -1 ) – version 1.1
Assume that you have teachers and students model.

Customize CGridView columns directly in your view

Created 2 years ago by clapasTips4 comments – viewed 22,111 times – ( +3 / -2 ) – version 1.1
You usually take a model instance passed into your view to provide data to a CGridView in this way:

Clear CGridView Filters, Sort & Pager

Created about a month ago by le_topHow-tos0 comments – viewed 2,311 times – ( +1 ) – 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.

Multi Data Provider

Created about a year ago by Sharon LavieTips0 comments – viewed 5,917 times – ( +1 )
Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).

Advanced CGridview issues - custom button using php and html

Created 8 months ago by KonApazHow-tos0 comments – viewed 3,175 times – ( +1 ) – version 1.1
This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)

CGridView and AjaxForm Connect

Created 3 years ago by PinkBrainPlanHow-tos2 comments – viewed 18,526 times – ( +1 ) – version 1.1
As I'm new to the framework (2 weeks) - I tried to build a functionallity I already use a lot in my old framework (PRADO). This means combining a GridView with a form. And this in one page, what allows you to select a record from the grid and view the values in the same page without jumping to a new page.
tags: Ajax, Form, CGridView

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created 2 years ago by Xgamer99Tips3 comments – viewed 9,893 times – ( +1 ) – version 1.1
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it or on the 'select all' checkbox.

Search scenario (CGridView, etc.): avoid default values from database as search condition.

Created 5 months ago by le_topTips1 comment – viewed 2,239 times – ( +1 ) – version 1.1
Yii has a neat "trick" that will assign default values to new CActiveRecords. When performing a search() though, this is pretty annoying as they automatically apply as filter values.