cancel
Showing results for 
Search instead for 
Did you mean: 

Table UI won't start dispay at 1st row after reloading it

Former Member
0 Kudos

Hello,

I have a table UI element in my Web Dynpro app. The user enters some search data, I perform some logic based on that and that results in a new set of data.

I populate the table with the new data and set the leadSelection to -1.

The table is in a ScrollContainer with scrolling set to auto so I can have vertical scroll bars.

However the table doesn't start the display with row 1 but with whatever row it was on before. In other words, let's say my original list contained 50 rows and I had scrolled down to row 15. Then the next result list contains 35 rows. When it displays the table it still starts with row 15.

Not sure if it's important but the properties of the table are set to have VisibleRowCount of -1 and FooterVisible to false. I had to do this in order to hide the navigation button bar at the bottom of the table.

Has someone seen this before? If so, can you please tell me how to fix it?

Any help would be greatly appreciated

View Entire Topic
Former Member
0 Kudos

Hi David,

Try this.

After populating the data, Set it's leadSelection to 0 instead of -1 by

wdContext.node<Table>().setLeadSelection(0);

Also make sure that firstVisibleRow property of table is 0 as Armin suggested.

Regadrs,

Fahad Hamsa