-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gridview Update after update select value #3
Comments
Can you please describe more detail your issue? |
Above is my code. |
Ok, I check it later |
@igor-chepurnoi are you understand my problem? |
Yes, As I understand, you need to reload gridview after value has been saved, right?
|
@igor-chepurnoi Yes, I need to reload gridview after value has been saved. Please help me in it. |
Ok, I'll try to help. |
I have updated this package, please update the package to
Grid view example <?php Pjax::begin(['timeout' => 10000, 'options' => ['id' => 'grid-pjax-container']]); ?>
<?php echo GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
[
'class' => EditableColumn::class,
'attribute' => 'username',
'url' => ['edit-user'],
'clientOptions' => [
'success' => (new \yii\web\JsExpression('function() {
$.pjax.reload({container: "#grid-pjax-container"}); // this code for update grid
}'))
],
],
[
'header' => Yii::t('app', 'Action'),
'class' => 'yii\grid\ActionColumn',
'template' => '{update} {delete}',
],
],
]);
?>
<?php Pjax::end(); ?> |
thanks @igor-chepurnoi, |
You need to update yii2mod/yii2-editable package via command |
Thanks @igor-chepurnoi . |
Gridview Update after update select value not working
The text was updated successfully, but these errors were encountered: