on 03-15-2006 9:55 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.