-
1. Re: rich:datascroller How to control the pagination events
michpetrov Aug 19, 2014 3:53 AM (in response to ashwanikalra)1 of 1 people found this helpfulHi,
you can create your own buttons and control the datascroller through the JS API. See the showcase example.
-
2. Re: rich:datascroller How to control the pagination events
ashwanikalra Aug 20, 2014 3:15 AM (in response to michpetrov)Thanks. It was little helpful.
There are further challenges to it. Like it is shown in the demo, I have to use my own controls. The demo is showing page numbers at bottom, which I cannot use. It will again bypass my js calls. So I need to generate my own links for : page numbers, next, prev, having onclick event which calls my javascript function where I can decide if user action has to be processed or not something like this
function checkDirty() {
if(notdirty){
RichFaces.$('form1:ds1').next();
}
else{
alert("Data Modified. Please save it first")
}
}
I tried to hide page numbers which seems to be issue in richfaces 4.2.2 . I also need to enable disable links based on which page the user is on.
Any hints??
Thx
Ashwani