A
A
Abr_ya2019-08-17 15:47:32
Yii
Abr_ya, 2019-08-17 15:47:32

Yii2, is there a generic solution for editing Grid view entries in a modal window?

I came across several examples on the net, but so far I can not repeat.
It became interesting: maybe there are some best practices, but I'm missing them?
In theory, the task is logical and should have arisen many times already - so why not be a standard solution?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim, 2019-08-17
@Abr_ya

There is.
https://github.com/loveorigami/yii2-modal-ajax
https://github.com/johnitvn/yii2-ajaxcrud
Use the second without fanaticism. Because it's not supported. You can see how it's done and write your own. It's not that hard. It all depends on your tasks.
Most of these tasks relate to the UI interface. Therefore, there are not so many such solutions in Yii2. It will not be entirely correct to translate one language into another, although this is sometimes done. If you look at these extensions, that's exactly what they do. That's what JS + Html + CSS is for, and that's their responsibility. You can try to look for ready-made solutions in JS.

H
hostadmin, 2019-08-17
@hostadmin

https://github.com/2amigos/yii2-grid-view-library (default GridView replacement) has " Editable column " functionality

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question