You need to sign in to do that
Don't have an account?
SN SF
apex:selectList is not working when rendered on top and bottom of the VF page
Hi -
I have a VF page with following structure . I included a Selectlist inside a PageBlockButton, so that user can set the pagination from bottom and top of the page
When I set the page size from top dropdown list it works fine . However when I update the page size from bottom , it doesn't work ..it just refresh and reset back to the previous value
For ex : When the page is loaded I will set the page size to "5" from top dropdown list , the same value will be displayed on botton dropdown list ., now i will change the page size to "10" in bottom dropdown list . It will reset back to "5"
CODE:
I have a VF page with following structure . I included a Selectlist inside a PageBlockButton, so that user can set the pagination from bottom and top of the page
When I set the page size from top dropdown list it works fine . However when I update the page size from bottom , it doesn't work ..it just refresh and reset back to the previous value
For ex : When the page is loaded I will set the page size to "5" from top dropdown list , the same value will be displayed on botton dropdown list ., now i will change the page size to "10" in bottom dropdown list . It will reset back to "5"
CODE:
<apex:actionFunction name="refreshPageSize1" action="{!refreshPageSize1}" status="fetchStatus" reRender="PBID" oncomplete="window.scrollTo(0,0);"/>
<apex:pageblockButtons style="width:100%;">
<div align="Right" style="margin-Top:10px;" >
<apex:outputPanel >
<apex:outputPanel >
<apex:actionStatus id="fetchStatus" >
<apex:facet name="start" >
<img src="/img/loading.gif" />
</apex:facet>
</apex:actionStatus>
</apex:outputPanel>
<apex:outputText >
{!(setCon.pageNumber * size)+1-size}-{!IF((setCon.pageNumber * size)>noOfRecords, noOfRecords,
(setCon.pageNumber * size))} of {!noOfRecords}
</apex:outputText>
<apex:selectList value="{!size}" multiselect="false" size="1" onchange="refreshPageSize1();" styleClass="dropdown_btn" >
<apex:selectOptions value="{!paginationSizeOptions}"/>
</apex:selectList>
<apex:commandButton status="fetchStatus" rerender="PBID" value="prev” action="{!prev}" />
<apex:commandButton status="fetchStatus" rerender="PBID" value = “Nxt" action="{!nxt}" />
<apex:commandButton status="fetchStatus" rerender="PBID" value =”SAVE" action="{!save}" />
</apex:outputPanel>
</div>
</apex:pageblockButtons>
Can someone please help me on this ?
Thanks in Advance !
Regards,
SN
Can someone please help me on this issue ?
Regards,
SN