public function actionIndex()
{
$searchModel = new BreakdownSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
In view you can choose the column to display and on the webpage you can filter on conditions,
But is it possible to pre-filter the data send to the view file, i.e instead of sending the full Model (Select * from table) to the view can we send only [size="2"](Select * from table Where condition) to the grid widget.[/size]