on 02-28-2006 1:07 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.