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
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
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
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.