2 Gridviews With Different Data

I ran into this problem not sure if bug or I am missing something.

I have 2 TbExtendedGridView widgets they are exactly alike minus one thing the data passed to it.

In this case they appear to be working properly, except one column passes the same data from a completely different widget with a different dataprovider.

Reference here: YiiBooster ExtendedGridView




'class' => 'bootstrap.widgets.TbRelationalColumn',



Here is the first widget:




                            $this->widget('bootstrap.widgets.TbExtendedGridView', array(

                                'id' => 'first-list',

                                'dataProvider' => $firstDataProvider,

                                'type' => 'striped bordered',

                                'template' => '{items}{pager}',

                                'columns' => array(

                                    array(

                                        'header' => false,

                                        'value' => '"Count " . ($row+1) . ":"',

                                    ),

                                    array(

                                        'header' => false,

                                        'name' => 'name',

                                    ),

                                    array(

                                        'class' => 'bootstrap.widgets.TbRelationalColumn',

                                        'url' => $this->createUrl('mycontroller/myaction', array(

                                            'id' => $this->id, // pass the record id

                                        )),

                                        'type' => 'raw',

                                        'value' => array($this, 'buildLink'), // Returns a CHtml link

                                    ),

                                ),

                            ));




Here is the second widget:




                            $this->widget('bootstrap.widgets.TbExtendedGridView', array(

                                'id' => 'second-list',

                                'dataProvider' => $secondDataProvider,

                                'type' => 'striped bordered',

                                'template' => '{items}{pager}',

                                'columns' => array(

                                    array(

                                        'header' => false,

                                        'value' => '"Count " . ($row+1) . ":"',

                                    ),

                                    array(

                                        'header' => false,

                                        'name' => 'name',

                                    ),

                                    array(

                                        'class' => 'bootstrap.widgets.TbRelationalColumn',

                                        'url' => $this->createUrl('mycontroller/myaction', array(

                                            'id' => $this->id, // pass the record id

                                            'type' => 2, // Hardcoded to be 2 always

                                        )),

                                        'type' => 'raw',

                                        'value' => array($this, 'buildLink'), // Returns a CHtml link

                                    ),

                                ),

                            ));



This is what is happening I click on the second link to open the relational column below and it is passing the correct id but type is never being passed at all. I tried to change the action to see if my action was busted but it would call the action from the first grid view. So I narrowed it down to the array is the same except I am passing one more parameter to the action (which doesn’t happen). I don’t know why this is occurring seems like a bug or is there a Yii feature I have to enable / disable to call this properly with the new column values. Thank you in advance.