Skip to content

Uncaught TypeError: $(...).yiiGridView is not a function #1040

@Kirkan

Description

@Kirkan

Hi!

YiiBooster 4.0.1
Some problems occurs when you try to filter in TbGroupGridView.
In version 3.1.1, the problem has not been seen.
Below code works fine on 3 version.

Error in Chrome console:
jquery.group.yiigridview.js:133 Uncaught TypeError: $(...).yiiGridView is not a function(anonymous function) @ jquery.group.yiigridview.js:133m.event.dispatch @ jquery.min.js:3r.handle @ jquery.min.js:3

my view:

$this->widget('bootstrap.widgets.TbGroupGridView',array(
'id'=>'phones-grid',
'type'=>'striped bordered',
'dataProvider'=>$model->search(),
'filter'=>$model,
'pager' => array(
        'class'=>'ext.bootstrap.widgets.TbPager',
        'displayFirstAndLast' => true,
),
'mergeColumns' => array('categoryid', 'city'),
'columns'=>array(
        //'id',
        array(
                'name' => 'categoryid',
                'filter' => CHtml::listData($list, 'id', 'name'),
                'header' => Yii::t('app','Category'),
                'value'=> '$data->category',
        ),
        array(
                'name' => 'city',
        ),
        array(
                'name' => 'name',
        ),      
),
)); ?>

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions