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
Page 1 of 1
New Extension Ddautofilter For Grid View
#2
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?
Great extension, but where to get methods textSearchCriteria and dateSearchCriteria? CActiveRecord not have these methods.
They may be implemented as a behavior?
#3
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:
Many thanks.
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.
Share this topic:
Page 1 of 1

Help











