Wiki

Articles tagged with "cgridview", sorted by viewsX
Displaying 11-20 of 65 result(s).

Using standard filters in CGridView custom fields

Created 6 years ago by GOshaHow-tos4 comments – viewed 64,030 times – ( +17 / -1 ) – version 1.1
In this article I'll try to explain how to use standard quick search fields in CGridView with customized columns.For example: We have a record in a database with field switch having 0 or 1 values. After that we want a user to see on or off instead 1 or 0. So we do the usual thing:

Displaying image in a CGridView column.

Created 5 years ago by sirin kHow-tos5 comments – viewed 63,714 times – ( +13 / -2 ) – version 1.1
This is a simple example of how we can display images in CGridviews.Imagine that you have an image field in your table ie either a location field or a blob type field used to store the images.
tags: CGridView, image

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

Created 5 years ago by yJeroenTutorials8 comments – viewed 60,641 times – ( +21 / -1 ) – version 1.1
This tutorial gives you multiple options of how to fully implement showing, sorting and filtering related data in gridviews.

Create custom button button with AJAX function in CGridView

Created 5 years ago by nkdHow-tos2 comments – viewed 55,792 times – ( +19 / -1 ) – version 1.1
CButtonColumn in CGridView can be customised to include user built buttons. To learn a great deal about including custom buttons, read this excellent wiki. This tutorial will show how to call an action from one custom button using AJAX instead of regular GET calls.

Using CJuiDatePicker for CGridView filter

Created 5 years ago by softarkHow-tos21 comments – viewed 52,534 times – ( +27 / -1 ) – version 1.1
We can use a CJuiDatePicker for a CGridView inline filter.

How to filter CGridView with From Date and To Date datepicker

Created 5 years ago by kiran sharmaTips16 comments – viewed 51,109 times – ( +17 / -5 ) – version 1.1
This artical is related to allow user to filter CGridView with date range using datepicker on submit button. Here I use Yii Cookie to preserve date in datepicker textbox after submitting the form.

CGridView: Update/create records in a CJuiDialog

Created 6 years ago by JobloTips12 comments – viewed 49,500 times – ( +14 / -1 ) – version 1.1
My article Display the full record in a CJuiDialog uses ajax to view a record in dialog on clicking the 'view-icon'.

Exporting CGridView results to CSV file

Created 5 years ago by RusAlexTutorials9 comments – viewed 48,735 times – ( +6 / -4 ) – version 1.1
A few days ago, i worked for CGridView exporting functional for my client. He asked me to create a simple exporting to a CSV file a CGridView search results.
tags: cgridview, export, csv

How to show ajax delete status in CGridView like flash messages

Created 6 years ago by hasanaviHow-tos12 comments – viewed 47,072 times – ( +25 / -1 ) – version 1.1
I've seen many tickets regarding how to show friendly delete confirmation using CGridView's CButtonColumn in ajax request. If you are using relational database, after producing CRUD functionality when you try to delete a record in ajax mode which has child record it can't be deleted and you can see the ajax loader forever. By this way you can't show the users if a record has been successfully deleted or if there are some problem in flash style (setFlash() / getFlash())

Searching and Sorting by Count of Related Items in CGridView

Created 5 years ago by softarkHow-tos14 comments – viewed 46,647 times – ( +33 / -1 ) – version 1.1
Let's say we have two models and relation between them: