This is a migrated thread and some comments may be shown as answers.

Defining Filter to fond last row on the page, and last row on report

3 Answers 34 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 02 Feb 2010, 08:59 PM
I'm trying to style the last row on each page, and the last row in the report. I'm closing off a bordered box that contains all the data. I need some help setting up the filter, as I'm pretty new at reporting.

I've used examples like this before:
alternateRowsRule.Filters.Add(new Filter("= RowNumber()%2", FilterOperator.Equal, "=1")); 


Can someone help me create a filter that will capture the rows I need?

Thanks!
James

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 03 Feb 2010, 10:31 AM
Hi James,

What you need is conditional formatting and not filter. You can distinguish between both by checking the following help articles:
However your current rule would style every odd row and you're aiming for last row only. To do that you would have to calculate (or test run the report and count) how many rows you have on a page and change the condition to reflect the rule only for the last row.
Regards,
Steve
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
James
Top achievements
Rank 1
answered on 03 Feb 2010, 03:47 PM
Sounds like I'm going to encounter a lot of problems with that. For instance, what about a page that doesn't have a full set of rows?

I'll be writing a lot of caveots.

And, yes, I was talking abou the filter for conditional formatting.

I think it sounds like the best option is to adjust the styles so that I don't need to do this.

Thanks!
James
0
Steve
Telerik team
answered on 03 Feb 2010, 04:57 PM
Hello James,

After further thought put on this, I would have to disappoint you that there is no way to do this. The data processing and the paging are two separate processes, furthermore each rendering extension has a different paging mechanism which complicates the task even more.

Sorry for the temporary inconvenience and initial confusion.

Best wishes,
Steve
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
General Discussions
Asked by
James
Top achievements
Rank 1
Answers by
Steve
Telerik team
James
Top achievements
Rank 1
Share this question
or