cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with table paging [PDK for NET]

former_member182374
Active Contributor
0 Kudos

Hi All,

I have a problem with table paging in PDK for .NET (ver 2).

The Table has 14 visible rows.

The lead selection is set to "SINGLE"

When the user selects a row I can use

Table1.SelectedKeys(0) Mod Table1.VisibleRowCount

in order to get the info of the selected row.

If I will page using the "Prev/Next" page of the Table UI element it will also work.

However, when I press "Prev/Next" item and then select a row it chooses the wrong row.

(See picture: http://img509.imageshack.us/img509/3882/table5tq.jpg)

What can I do in order to solve the problem?

Thanks,

Omri

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Omri,

how are you doing ?

The SAPTable is similar to a DataGrid control and need to be bound to the datasource on every postback

a good idea is to keep the dataset available in the page or on the server ( so that you dont need to keep making expensive fetch operations

The selected row is affected by the recordset (dataset) and needs additional programming

A work around for the selected row issue is to save it in a server side hidden variable (or anything that will persist) and read and set the value in the page / next button handler

with respect,

amit

Former Member
0 Kudos

Just ran into this issue also with the Prev/Next item button on the table control. Is there a way to simply remove those button and keep the paging icon from the footter?

Thanks