Changeset 1533

Show
Ignore:
Timestamp:
12/01/2006 06:37:06 AM (2 years ago)
Author:
xue
Message:

fixed current page index.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/3.0/framework/Web/UI/WebControls/TDataBoundControl.php

    r1531 r1533  
    338338                                $this->setViewState('PageCount',$ds->getPageCount()); 
    339339                                if($ds->getCurrentPageIndex()>=$ds->getPageCount()) 
     340                                { 
    340341                                        $ds->setCurrentPageIndex($ds->getPageCount()-1); 
     342                                        $this->setCurrentPageIndex($ds->getCurrentPageIndex()); 
     343                                } 
    341344                                $this->performDataBinding($ds); 
    342345                        }