New Extension Ddautofilter For Grid View

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

Hi, Joachim!

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

They may be implemented as a behavior?

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.

I have save problem as Drlo. Did any one solved the issue???