Models listing issue in Yiiadmin

Hello,

I have installed yiiadmin extension. My app has various models named Events, Sales, Tickets etc.

I have copied models from (project_path\views\) to (project_path\protected\modules\yiiadmin\models).

In protected/config/main.php I have copied my models to yiiadmin e.g

‘yiiadmin’=>array(

            'password'=>'admin',


            'registerModels'=>array(


                'application.models.Events',


				 'application.models.Members',


				  'application.models.Sales',


				  'application.models.Tickets',


            ),

After login in the admin (app_url/index.php?r=yiiadmin). All models are listed and when I click on Events it only shows edit and delete icons links. Please find the attachement.

Please suggest for it.

After exploring I found the solution. Here is a fix:

I added below method in my Events.php model and mentioned all fields of events.

And now listing is displaying fine.

	public function adminSearch(){


    return array(


            // Data provider, by default is "search()"


            //'dataProvider'=>$this->search(),


            'columns'=>array(


            'event_id',


            'event_name',


            'event_date',


            'event_venue',


	'event_city',


        ),


    );


}