Filter not working, when i type text and unfocus, or press enter, request not going to my controller
Controller
$orders = new OrderModel();
if (Yii::app()->getRequest()->getIsAjaxRequest()) {
header( 'Content-type: application/json' );
$this->renderPartial('_order', compact('orders'));
Yii::app()->end();
}
_order view
$this->widget(
'bootstrap.widgets.TbJsonGridView',
array(
'dataProvider' => $orders->search(),
'filter' => $orders,
'type' => 'striped bordered condensed',
'summaryText' => false,
'cacheTTL' => 10, // cache will be stored 10 seconds (see cacheTTLType)
'cacheTTLType' => 's', // type can be of seconds, minutes or hours
'columns' => array(
'Id',
'name',
'model',
'imei',
'provider',
'payment_type',
array(
'name' => 'datetime',
'type' => 'datetime'
),
array(
'header' =>'Действия',
'class' => 'bootstrap.widgets.TbJsonButtonColumn',
'template' => '{view} {delete}',
'viewButtonUrl' => null,
'updateButtonUrl' => null,
'deleteButtonUrl' => null,
'buttons' => array(
'delete' => array(
'click' => 'function(){return false;}'
)
)
),
),
)
);
Thanks for help