Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Kirkan opened this issue Jun 4, 2016 · 0 comments
Open

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

Kirkan opened this issue Jun 4, 2016 · 0 comments

Comments

@Kirkan
Copy link

Kirkan commented Jun 4, 2016

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant