Is there a way I can display the item count in the Status Bar or the grid when paging is disabled? When paging is enabled, theres a message such as " 91 items in 7 pages" (like here: http://demos.telerik.com/aspnet-ajax/grid/examples/programming/groupby/defaultcs.aspx), but is there a way i can have it say something like "Displaying 91 items."? I know I can make use of column aggregation, but I'm wondering specifically about the Status Bar.
7 Answers, 1 is accepted
One suggestion is you can get the total items count in item event and then set the count in prerender event. Here is the sample code that I tried which worked as expected.
Unfortunately the required functionality could not be achieved per your requirements. After Q1 2009 the StatusBar item was modified and it could only appear if you have paging enabled for the RadGrid control.
Excuse us for any inconvenience this may lead. We will update our documentation to add this statement as soon as possible.
the Telerik team
As I previously mentioned the required functionality could only be achieved in case the paging is enabled for the RadGrid control. So I would suggest you to enable the paging feature for the RadGrid control in order to show the item count status bar.
the Telerik team
I got the status bar to show without paging information by doing the following:
.Pageable(page => page
Now I get the status bar with how many items I have without showing the paging information which I don't need because my grid is scrollable.
I forgot one thing, in the .DataSource you need to set your PageSize to something you'll never reach since it seems to default to 10 items if you don't
.DataSource(dataSource => dataSource