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

rgInfoPart not displaying total number of items

4 Answers 130 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Raulis
Top achievements
Rank 1
Raulis asked on 22 Jul 2016, 02:01 PM
I've got a RadGrid with about 300 items but the pager is not displaying the correct number of items. It's saying (0 items in 1 pages). I don't have custom logic for the pager. PagerStyle is set to always visible. Paging is enabled. The only time I disable paging is when I click one specific button but it should not affect the grid on initial page load. Ideas?

4 Answers, 1 is accepted

Sort by
0
Raulis
Top achievements
Rank 1
answered on 22 Jul 2016, 02:09 PM
Should've mentioned that I use an SQL Data Source and bind it to my grid. The population is automatic so I don't tamper with the information in the rows.
0
Raulis
Top achievements
Rank 1
answered on 22 Jul 2016, 02:24 PM
1.If TypeOf e.Item Is GridPagerItem Then
2.    Dim x = CType(e.Item, GridPagerItem).Paging.PageCount         'returns 1 (correct for current testing)
3.    Dim y = CType(e.Item, GridPagerItem).Paging.VirtualCount      'returns 0
4.    Dim z = CType(e.Item, GridPagerItem).Paging.DataSourceCount   'returns 0
5.End If
0
Raulis
Top achievements
Rank 1
answered on 22 Jul 2016, 03:26 PM
FIXED. For some reason, when custom paging is enabled, the correct number of items/pages does not appear. Changes custom paging to false and everything's good now.
0
Konstantin Dikov
Telerik team
answered on 27 Jul 2016, 06:51 AM
Hello Raulis,

With enabled custom paging you need to provide the relevant information to RadGrid. Detailed information on this matter is available in the following help topic:

Best Regards,
Konstantin Dikov
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Raulis
Top achievements
Rank 1
Answers by
Raulis
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or