kop / yii2-scroll-pager

Infinite AJAX scrolling for Yii2 ListView widget
https://kop.github.io/yii2-scroll-pager/
MIT License
180 stars 63 forks source link

select2 dropdown in 'itemView' => not working after initial page. #16

Closed drawlusyk closed 10 years ago

drawlusyk commented 10 years ago

Hello,

$openExams = ArrayHelper::map(Exams::find()->asArray()->all(), 'id', 'name'); I pass $openExams in listview config 'viewParams' => ['openExams' => $openExams,

When using default pager it works, when i enable 'class' => \kop\y2sp\ScrollPager::className(),

only the first page of items shows the select2 dropdown and then i am left with the default arrow loading spinner for any further items called.

Any ideas on how to fix this?

Regards, Dennis

drawlusyk commented 10 years ago

I believe this to do with select2 itself and issues with ajax rendering.