andrewi
Posts: 162
|
Posted: 05/26/2007, 5:00 PM |
|
Grid - asp
If you leave PageSizeLimit blank (which I thought meant 'unlimited'), alternate row colouring will stop working.
The Set Row Style code refers to Sender.RowNumber to get the current row number. It seems that if PageSizeLimit is blank, codecharge doesn't bother to count the rows (probably quite logically).
|
 |
 |
wkempees
|
Posted: 05/27/2007, 9:50 AM |
|
> If you leave PageSizeLimit blank (which I thought meant 'unlimited'),
> alternate row colouring will stop working.
Hum,
>
> The Set Row Style code refers to Sender.RowNumber to get the
> current row number. It seems that if PageSizeLimit is blank, codecharge
> doesn't bother to count the rows (probably quite logically).
Strange behaviour, CCS needs to count the Rows, which you should be able to
test.
In BeforeShowRow, response.write Sender.RowNumber.
It should display a sequence like "123456789101112" when 12 rows are
displayed.
How, without this, would you be able to address any variables?
I just, for fun, tested this in PhP, and alt_row (action) continues to
function if I blank PageSizeLimt
and even if I consequently blank RecordsPerPage (which would make more
sense).
So you have either a totally different problem or need to generate the page
fresh.
Walter
|
|
 |
andrewi
Posts: 162
|
Posted: 05/27/2007, 6:02 PM |
|
Thanks for comparing with php - perhaps it is different.
I tried your suggestion (in asp). Single grid on a page, using a style with alternate row colouring.
with a value (e.g. 1000) in PageSizeLimit: , Sender.RowNumber counts up each row as expected.
with blank PageSizeLimit, Sender.RowNumber returns 1 for every row
(with PageSizeLimit = 0 , there's an 'object closed' error)
-----
So that explains the failure of the row colouring with blank PageSizeLimit. Otherwise, the grid seemed to work normally.
Anyway, it's not a great inconvenience - I'm just using a very high number for PageSizeLimit instead. The only inconvenience was working out what the problem was - hence this note!
Andrew
Edit: I've just found the help file which says leave Record per Page and Page Size Limit both empty for no limits: http://docs.codecharge.com/studio3/html/index.html?http...ltPageSize.html so perhaps it is bug in the asp implementation that causes RowNumber (and hence colouring) to fail.
|
 |
 |
|