Two Models In One View (No Relations, Gridview)

Hi :)

I have two different models (test1, test2; no relations) and i would like to show, search and sort the values with (tbgridview) cgridview in a View of test1. The code below shows my actually status. „Cgridview $model2“ shows all values from the database and i can sort it, but when i use the search field (filter), cgridview shows all values :(

Whereas, Cgridview $model1 works perfectly.

Code: view test1


        $model2= test2::model();



	'type'=>'striped  condensed',




	'emptyText'=>'no results!',







Can any body help me?

it will not work. unless you have some sort of relationship between modles. you have two different models with completely different table structure