Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TbThumbnails and ajaxUpdate #172

Open
CarlosAdrianM opened this issue Dec 26, 2013 · 0 comments
Open

TbThumbnails and ajaxUpdate #172

CarlosAdrianM opened this issue Dec 26, 2013 · 0 comments
Assignees
Labels

Comments

@CarlosAdrianM
Copy link

I had this problem with Bootstrap TbThumbnails in Yii:

Pagination shows well when the page is initially loaded, but if we click in the last page link then it shows all the records instead of just one page of records.
The Link Pager buttons are initially shown under the records, like we set in the 'template' parameter, but when we click in the last page link it moves above the records instead of under them.

The code in the view (the wrong one):

<div class="row-fluid">
<?php 
    $this->widget('bootstrap.widgets.TbThumbnails', array(
    'dataProvider'=>$dataProvider,
    'template'=>"{items}\n{pager}",
    'itemView'=>'_view',
    )); ?>
</div>

But if I use TbListView it works fine:

<div class="row-fluid">
<?php 
    $this->widget('bootstrap.widgets.TbListView', array(
    'dataProvider'=>$dataProvider,
    'template'=>"{items}\n{pager}",
    'itemView'=>'_view',
    )); ?>
</div>

It also works if I set ajaxUpdate = false:

<div class="row-fluid">
<?php 
    $this->widget('bootstrap.widgets.TbThumbnails', array(
    'dataProvider'=>$dataProvider,
    'ajaxUpdate' => false,
    'template'=>"{items}\n{pager}",
    'itemView'=>'_view',
    )); ?>
</div>

Any explanation? Any know problem with ajaxUpdate?

Thank you for the Yiistrap extension, it is great!

@crisu83 crisu83 self-assigned this Feb 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants