kartik-v / yii2-grid

Enhanced GridView with various utilities for Yii Framework 2.0
http://demos.krajee.com/grid
Other
558 stars 302 forks source link

[ask] Re-init kartik widget on Gridview after Pjax reload #1048

Open donny26utama opened 1 year ago

donny26utama commented 1 year ago

I have added Datepicker using your widget kartik\date\DatePicker on Gridview's pjaxOptions -> beforeGrid. On the first load, this widget works properly. but if I want to filter or change the page, after Pjax loading, this widget not works. I have tried adding this widget to the panel, but the same result. I have read some issues before, we need re-initialize after the event pjax:complete. But how to re-init your widget?

newadventure079 commented 1 year ago

Look at this https://lorenzo.mile.si/reinitialize-kartik-plugins-after-pjax-with-pjaxcontainerid/383/