Yii Framework Forum: Issue With Clistview And Ie10 - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Issue With Clistview And Ie10 Rate Topic: -----

#1 User is offline   Ashish A. Naicker 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 01-January 13
  • Location:Auckland, New Zealand

Posted 01 January 2013 - 04:21 AM

Has anyone else got this issue? CListView pagination is working in Chrome and Firefox, but not with IE10 or IE10 compatibility. The itemView is being populated on the first page, but the 2nd and consecutive pages are empty.

Controller Code:
public function actionIndex() {

        $newsDataProvider = new CActiveDataProvider('News', array(
                    'criteria' => array(
                        'order' => 'news_date DESC',
                    ),
                    'pagination' => array(
                        'pageSize' => 3,
                    ),
                ));

        $this->render('home', array(
            'newsDataProvider' => $newsDataProvider,
        ));
    }


Code in view:
echo CHtml::openTag('div', array(
    'class' => 'span-14',
));
$this->widget('zii.widgets.CListView', array(
    'dataProvider' => $newsDataProvider,
    'itemView' => '_news',
    'template' => '{items}\n{pager}',
));
echo CHtml::closeTag('div');



Code in partial view:
echo CHtml::openTag('div', array('class' => 'view'));

echo CHtml::openTag('strong') . CHtml::link($data->title, '/site/news/view?id=' . $data->id, array(
)) . CHtml::closeTag('strong');

echo CHtml::openTag('p', array()) . CHtml::closeTag('p');

echo CHtml::image($data->picture, '', array('width' => '300px', 'style' => 'float:right; padding-left: 10px;'));

echo CHtml::encode($data->summary);

echo CHtml::openTag('div', array('class' => 'clear')) . CHtml::closeTag('div');

echo CHtml::tag('br');

$news_date = new DateTime($data->news_date);

echo CHtml::openTag('em', array('style' => 'font-size: smaller; float: right;')) . 'Date created: ' . $news_date->format('d - m - Y') . CHtml::closeTag('em');

echo CHtml::openTag('div', array('class' => 'clear')) . CHtml::closeTag('div');

echo CHtml::closeTag('div');

0

#2 User is offline   Ashish A. Naicker 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 01-January 13
  • Location:Auckland, New Zealand

Posted 01 January 2013 - 04:46 AM

Ok. Got the fix for that issue. IE cache needed to be cleared. Bit weird for only one browser, but then its IE. Anything is possible, I guess.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users