cancel
Showing results for 
Search instead for 
Did you mean: 

Freeze table header while scrolling the table rows

0 Kudos

I have an application with webdynpro table UI with VisibleRow property

binded to runtime context attribute whose value depends on number of records returned

from a BAPI. Also this table UI is rendered in a transaparent container.

Now when we run this application to view this table on the IE and try

to scroll vertically on the transparent container using vertical

scrollbar, the table header row is becoming invisible.

Can we freeze a table header row so that when we scroll to the bottom

rows of table, the table header remains visible with in the transparent

container?

Steps for Reconstruction

1. Create a webdynpro java project having a view.

2. Add a transparent container ans set property height as 150px or 80%.

3. Add a table UI within the above transparent container.

4. populate this table with sample 100 records.

5. set the visible row count property to 100.

6. deploy and run the application.

7. Now on the application screen, try scrolling the vertical scroll bar

of transparent container holding this 100 record table.

8. We can see that the table header row becomes invisible as and when

we scroll to the bottom of table.

Accepted Solutions (0)

Answers (1)

Answers (1)

Qualiture
Active Contributor
0 Kudos

This is not possible, since you're basically scrolling the contents of the container, and not scrolling the table...

You could fake this behavior a bit, by adding labels above the container, which are aligned with the table columns, and hiding the actual table headers, but from a user experience point of view, this might look odd

0 Kudos

Hi

Adding labels above the container with the same t able columns and hiding the actual table headers will not work in my application because on the table, column resizing, column hiding and column Drag&Drop feature is also enabled which user can use at his convenience.

Is there any other way of handling this situation?

Any enhanced feature of CE 7.2 can help me here?

Overall objective is to make use work on Table UI having more than 50 record and vertically scroll without any server calls.And at the sametime display the table header for records displayed at that moment.

Edited by: ABDUL RAHEEM SHAIK on Aug 6, 2011 10:58 PM

Former Member
0 Kudos

Why don't you just use the Table UI element as designed? Don't use a scroll container as parent but let the table scroll itself. See the [tutorial|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10da82b2-2d08-2d10-35bd-ab9cc5f64aa6] inside the Web Dynpro Demo Kit.

Qualiture
Active Contributor
0 Kudos

Please note the solution provided by Segmentation Fault is only feasible from version 7.11 onwards. Table UI in older Web Dynpro versions lack the scrollbar functionality

0 Kudos

Ok. It seem i need to upgrade my development environment and further implement the same.Thanks for your suggestion.