Yii Framework Forum: New Extension Ddautofilter For Grid View - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

New Extension Ddautofilter For Grid View Rate Topic: -----

#1 User is offline   jwerner 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 30
  • Joined: 04-December 08
  • Location:Germany

Posted 06 May 2013 - 03:40 AM

Hello,


I have created a new extension to add an auto-filters functionality to grid views, similar like in MS Excel tables.

Yii Extensions Page


Screenshots

Hope you might find this useful?!


Regards,

Joachim
0

#2 User is offline   navy 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 08-November 10

Posted 07 May 2013 - 02:15 AM

Hi, Joachim!

Great extension, but where to get methods textSearchCriteria and dateSearchCriteria? CActiveRecord not have these methods.

They may be implemented as a behavior?
0

#3 User is offline   Drlo 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 11-May 13

Posted 11 May 2013 - 11:10 AM

Hello,
it seems to be a great extension. I am a newbie, I have tried to use it in my application. I have done every steps in setup. But, I have still one problem:
When I click on the icon (icon-arrow-down autofilter) in particular column, the filter dialog is not displayed. What I do wrong? Could you please help me? Or, could you please prepare demo?

This is my code in views/employee/admin.php:
<?php 
 
$this->widget('ext.bootstrap.widgets.TbGridView', array(
	'id'=>'employee-grid',
	'dataProvider'=>$model->search(),
	'afterAjaxUpdate'=>'function(){jQuery("i.autofilter").click(showAutofilterDialog)}',
	'filter'=>$model,
	'filterPosition'=>'body',
	'columns'=>array(
		array(
            		'name'=>'id',
           		'class'=>'ext.diggindata.ddautofilter.DDAutoFilterDataColumn',
            		'columnType'=>'number',
	 		'filter'=> array(1=>1, 2=>2, 3=>3), 
             		),
		array(
			'name'=>'username',
			'class'=>'ext.diggindata.ddautofilter.DDAutoFilterDataColumn',
            		'columnType'=>'text', // or 'text' or 'date' or 'bool'
			),
		array(
            		'name'=>'password',
            		'class'=>'ext.diggindata.ddautofilter.DDAutoFilterDataColumn',
            		'columnType'=>'text', // or 'text' or 'date' or 'bool'
			),	
		array(
			'name'=>'email',
			'class'=>'ext.diggindata.ddautofilter.DDAutoFilterDataColumn',
            		'columnType'=>'text', // or 'text' or 'date' or 'bool'
			),
		array(
            'class'=>'bootstrap.widgets.TbButtonColumn',
       	 ),
	),	
)); 
$this->widget('ext.diggindata.ddautofilter.DDAutoFilterWidget', array('gridId' => 'employee-grid'));
?>


Many thanks.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users