display 2 tables in \kartik\grid\ExpandRowColumn

I am able to display one table by using the kartik rowexpandcolumn but I would like to show 2 tables in the same expansion like the task and defects records at the same time.6869

yi.png

this code is also getting all the records of tasks but it should be only getting tasks related to that particular project.

My current code is:

[

							'class' =>'\kartik\grid\ExpandRowColumn',


							'expandIcon'=>'<span class="glyphicon glyphicon-plus"></span>',


							'collapseIcon'=>'<span class="glyphicon glyphicon-minus"></span>',


							'value' =>function($model,$key,$index,$column){


								return GridView::ROW_COLLAPSED;


							},


							


							'detail' => function($model,$key,$index,$column){


								$searchModel = new Task();


								$searchModel->project_id = $model->id;


								$dataProvider= $searchModel->search(yii::$app->request->queryParams);


								return yii::$app->controller->renderPartial('task_index',[


								'searchModel' => $searchModel,


								'dataProvider' => $dataProvider,


								


								]);


							},


							


							


							


							],

Thankyou guys…

waaaat?!