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

style on last item

2 Answers 115 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rayne
Top achievements
Rank 1
Rayne asked on 11 Jul 2011, 04:11 PM
I'm putting a bottom border on my list items (using a panel) to separate them, but don't want to show this border on the last item, because I have another border at the end of the list. Is there a way I can check if the record being processed is the last one, so that I can set the border to none?

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 11 Jul 2011, 05:32 PM
Hi Rayne,

To check for the list's last record you can use the following expression:

=Exec("List1", Count(1)) = RowNumber()

Give it a try and let us know how it goes. If you need additional assistance on the topic we will appreciate if you elaborate further on your scenario.

Regards,
Peter
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Rayne
Top achievements
Rank 1
answered on 11 Jul 2011, 09:00 PM
Thank you. That worked.
Tags
General Discussions
Asked by
Rayne
Top achievements
Rank 1
Answers by
Peter
Telerik team
Rayne
Top achievements
Rank 1
Share this question
or