public function actions()
{
$actions = parent::actions();
$actions['index']['prepareDataProvider']=function ($action){
$queryfunc = [$this->modelClass,'find'];
return new ActiveDataProvider([
'query' => $queryfunc(),
'pagination' => false,
]);
};
return $actions;
}