Closed juan0alfonso0agentcars closed 4 years ago
You need to use indexBy('primary_key_colname')
when you are generating your dataProvider so that the right record key is passed to EditableColumn for updating - refer this comment.
Not Working, first editableColumn from first row its the only that not send all parameters on ajax request, only send id (the id its accord of the record).
Prerequisites
master
branch of yii2-grid.Code Example:::
gridview.txt
Steps to reproduce the issue
Expected behavior and actual behavior
Expected Behavior: Request ajax send next params: hasEditable: 1 editableIndex: 0 editableKey: 227 editableAttribute: km_or_ml <DataOfYiiMode
Actual Behavior (Id of some Yii model): id: 6989
When I follow those steps, I see... First Column with 'class' => 'kartik\grid\EditableColumn' not send request correctly.
I was expecting... The first column send correctly request, like others one
Environment
Browsers
Operating System
Libraries
Isolating the problem