Questions tagged [yii2-grid]
21 questions
0
votes
1 answer
Yii 2 GridView Search Within ActiveForm
Working with Yii 2 ActiveForm, I am trying to add a GridView with search for selecting items to add to a relationship (the database is MongoDB)
I want to include a "Search and Select" GridView widget, and have the items added to the ActiveForm model…

jordan.baucke
- 4,308
- 10
- 54
- 77
0
votes
0 answers
Yii2: kartik GridView - filter not working if field from 1:n relation is displayed
I have a gridview for a model, displaying an attribute gender and and a field lang_code from 1:n relation language.
When I filter for 'female' it displays the 310 females (out of the 600 total entries). If I then clear the filter, 0 entries are…

Mathias
- 334
- 3
- 5
- 22
0
votes
0 answers
How to prepare grid view columns array using model or controller in yii2?
I am using yii2 grid view widget like below
= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
[
'attribute' => 'name',
…

praba
- 105
- 1
- 3
- 11
0
votes
0 answers
What happens behind the scenes when I click on checkbox of checkbox column of Yii2 GridView::widget?
Use the following controller function to capture the javascript generated array 'keylist' when you click on a checkbox under the Yii2 checkbox column of gridview.
Mistake I made: Not realising that the Doit action was being run behind the scenes…

Addi
- 199
- 14
0
votes
0 answers
AngularJs ng-repeat in Yii2 Grid column
I need to embed a small HTML snippet in a column of a Yii2 GridView. The HTML contains angular directives (i.e., ng-repeat). Here is the GridView column:
[
'label' => 'Column',
'format' =>…

gcswoosh
- 1,279
- 1
- 15
- 31
-2
votes
1 answer
Yii2 Class 'DateRangePicker' not found
Answer
php composer.phar require kartik-v/yii2-widget-datepicker "@dev"
I want filter in GridView::widget by date range
But I got error "Class 'DateRangePicker' not found"
Helpres does not find this module
[
…

pikalivo
- 1
- 1
- 3