FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.



Sep 14, 2011, 3:53 PM
66 Posts

Re: Run code/partial refresh a panel onclick of a Pager Control link

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 1
 I've found if you set the "Pager style" to "Custom", you can add <xp:pagerControl> controls which have onclick events associated with them. However, I cannot get any event (client or server) to fire off.
 
  <xp:pager id="pager1" for="repeat1">
<xp:pagerControl id="pagerControl1" type="Next">
<xp:eventHandler event="onclick" submit="false">
<xp:this.script><![CDATA[alert("hello");]]></xp:this.script>
</xp:eventHandler>
</xp:pagerControl>
</xp:pager>
 
The "hello" alert box does not show onclick of the "Next" link in the pager control. Am I missing something? 

FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.