Answer the question
In order to leave comments, you need to log in
How to set search filter in ListView + pjax?
function render(param, value){
$.pjax({
type : 'POST',
url : updateQueryStringParameter(window.location.href, param, value),
container : '#countries',
data : {},
push : true,
replace : false,
timeout : 10000,
"scrollTo" : false
})
}
...
<?php Pjax::begin(['id' => 'countries']);
echo ListView::widget([
'dataProvider' => $dataProvider,
'itemOptions' => ['class' => 'item'],
'itemView' => '_view',
....
]);
Pjax::end();?>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question