Posted By

corporem on 09/30/11


Tagged


Versions (?)

Flex 4.5 Spark Datagrid LazyScroll Handler


 / Published in: ActionScript 3
 

  1. private function dtg_creationCompleteHandler(evt:FlexEvent):void {
  2. dtg.scroller.verticalScrollBar.addEventListener(Event.CHANGE, dtgScroller_changeHandler);
  3. }
  4.  
  5. private function dtgScroller_changeHandler(evt:Event):void {
  6. var vsb:VScrollBar = evt.currentTarget as VScrollBar;
  7. if (vsb.value == vsb.maximum) {
  8. if (applicationModel.applications.length < applicationModel.totalCount) {
  9. callLater(loadMore);
  10. }
  11. }
  12. }

Report this snippet  

You need to login to post a comment.