xdateview A Date grouped Grid View

  1. Requirements
  2. Usage
  3. Resources
  4. Changelog

Do you have tables (generally grid views), that have a date field? and is that date important to the your user? with XDateView you can show the user a table grouped by a date field in an organized way, that allows you user to quickly understand the time frames of you dataset.

XDateView

Requirements

Developed and tested with Yii 1.1.8, but should work with other 1.1.* versions.

Usage

Download and extract the contents to you extensions folder

XDateView extends from CGridView, so it inherits all of its attributes, there are however 2 more attributes.

  • dateField which tells the grid which is the column with the date info to group with
  • tableOptions HTML options for the table
<?php
$this->widget('ext.xdateview.XDateView',array(
			'dataProvider'=>$model->search(),
			'filter'=>$model,
			'dateField' => "create_time",//the default value
			'columns'=>array(
				...		
			),
		));
?>

Info: Please post your questions/recommendations/fixes/etc on the forum, try to keep comments here for other things

Resources

Changelog

v0.2
  • Fixed bug with empty datasets missing a colspan
    v0.1
  • First release
12 0
17 followers
1 302 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: Asgaroth
Created on: Dec 8, 2011
Last updated: 12 years ago

Downloads

show all

Related Extensions