I am using Yii2 kartik gridview. Below are the 2 images before and after toggleData button is clicked. I am unable to see Full data in gridview.
BEFORE
AFTER
Only the pagination goes away but gridview does not display all records. I have 10 records for now, I have set pagination to 5 records. So If I click on "All", I must get all 10 records, but as you see I only get 5 records.
Below is code for ActiveDataProvider before rendering page.
CODE INSIDE CONTROLLER ACTION
$searchModel = new StudentsAdminSearch();
$dataProvider = $searchModel->search(\Yii::$app->request->queryParams);
return \Yii::$app->controller->render('student/student_list', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
CODE INSIDE StudentAdminSearch
$dataProvider = new ActiveDataProvider([
'pagination' => [
'pageSize' => Constants::$PAGE_SIZE, // $PAGE_SIZE=5
],
'query' => $query,
]);