Integration of Sortable plugin to GridView

Web Tips Q & ACategory: Krajee Yii2 ExtensionsIntegration of Sortable plugin to GridView
spt asked 2 years ago

Do you plan to intergrate Sortable plugin in your GridView to give ability to sort grid by drag/drop rows? If not, can you explain how to do this ourself?

1 Answers
Kartik Staff answered 2 years ago

No… currently there is no such plan to integrate a Sortable plugin – as it requires a separate effort and also will add to the bloat and can break other javascript – so needs careful study. This is technically possible and you can submit a pull request on the repo if you can enhance this yourself. This involves you to use the Sortable widget to get reordered records and based on that you need to modify the dataProvider query and refresh the grid with the reordered data.

Login or register to contribute or comment.

Login   Register