Small update, 

Looking at it further I've found how to get selectedItem set correctly using 
the following code:

private function onPageMenuChange():void
{
    this.recordSetVO.requestVO.cursorOffset = 
this.recordSetVO.requestVO.pageSize * this.pageMenu_cb.selectedIndex;
    this.raiseRequestEvent(); // fetch next page of data
}

private function onPageMenuValueCommit():void
{
    pageMenu_cb.selectedIndex = this.recordSetVO.currentPage - 1;
}

<mx:ComboBox width="57" id="pageMenu_cb" 
                     dataProvider="{getPageMenuOptions(this.recordSetVO)}" 
                     change="onPageMenuChange()"
                     valueCommit="onPageMenuValueCommit()"
                      enabled="{getPageMenuEnabled(this.recordSetVO)}" />

However, my change handler no longer has any effect.  It doesn't seem to ever 
get called. Previously I could use my combobox to jump to a specific page of 
results from the server, but after putting in the valueCommit code nothing 
happens. : (

Has anyone experienced problems with using both valueCommit and change event 
handlers with a ComboBox.   I can get either one working but not both.

thanks

Stephen



      

Reply via email to