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

Must be easy - get rowcount when less than 1 page

1 Answer 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 26 Nov 2010, 12:38 PM
Hi - on my grid, it displays the total number of results as well the normal pagination controls, but, if I have my grid set to display 50 rows per page and I have less than 50 results, the pagination doesn't show (which is obvious) but the total row count doesn't show either.

How would I get it to display, say 35 when I have it set to 50 rows per page?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 26 Nov 2010, 02:03 PM
Hello John,

You can set PagerStyle AlwaysVisible as "true", which will always display pager even if the PageSize is greater than the total items in grid.

ASPX:
<telerik:RadGrid runat="server" ID="RadGrid1">
   <MasterTableView Name="Master" AllowPaging="true" PageSize="50">
       <PagerStyle AlwaysVisible="true" />

Thanks,
Princy.
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or