If your table is a static table
(does not have any dynamic data) = RowNumber()%2 expression
will be executed only once and the result will be 1. Therefore, the color will be applied to the whole table.
In order the specified rule to work as expected, Detail section must be rendered multiple times (for each record from the data source). However, in your scenario the static row is rendered only once - Understanding Static and Dynamic Rows and Columns
Depending on report's layout and data bindings, you can specify the name of the data scope
as an argument for the RowNumber function. Note, that you can only specify the current scope or a containing scope, not the scope that is lower or at the same level in containment order than the current scope.
You can find attached a sample implementation of alternating row style working with a test data from AdventureWorks database
. In this example, conditional
formatting rule is applied to the table's inner textboxes.
We hope this will help.
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal
and vote to affect the priority of the items