cancel
Showing results for 
Search instead for 
Did you mean: 

Paging in Table UI Element

Former Member
0 Kudos

Hi all,

I have a table, it's visible row count is 6.

when it contains 8 rows for example, I would expect it to display the 6 first rows and when paging down - to display the remaining 2 rows.

what really happens is:

It first displays the first 6 rows.

When paging down - it displays the last 6 rows.

Any idea on how to fix that?

Maybe there is an event that is fired when paging down/up and I can catch it and calculate the first visible row?

Thanks for your time, Adi.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

a quick but dirty workaround might be to add some empty rows to your table (6 - (<numberOfRows> mod 6)). In your action handler you have to check if a empty row was selected and skip the action. Of course this is not the best solution, but it is easy to implement.

regards

Sebastian

Former Member
0 Kudos

Hi Sebastian,

Thanks for the nice trick.

I checked it and it works.

But - I still hope for a nicer solution.

Implementing your solution will make me make changes in so many places...(I have a lot of tables and different operations on them).

and of course there is the problem of sorting the table -

these empty lines will move to the beginning of the table....

any other solutions?

Adi.

Former Member
0 Kudos

Hi Adi,

yes, sorting is a big issue with this workaround.

What about disabling the default footer of the table control and implementing two custom buttons i.e. "previous page" and "next page". In the action handlers of this buttons you can set the "firstVisibleRow" property of the table...

Former Member
0 Kudos

Hi Sebastian,

Thanks again for the nice solution.

Doesn't seem to worth the effort (for such a bug) and the risk of inserting new bugs.

It will also change the appearance of my application which won't be consistent with the rest of the project.

Thanks, still hoping for a cleaner solution.

I checked and this bug exist for different customers that I work with.

Other developers haven't encounter that problem as well?

am I doing something that is basically wrong?

Adi.

Answers (0)