rgInfoPart not displaying total number of items

5 posts, 0 answers
  1. Raulis
    Raulis avatar
    14 posts
    Member since:
    Jun 2016

    Posted 22 Jul Link to this post

    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?
  2. Raulis
    Raulis avatar
    14 posts
    Member since:
    Jun 2016

    Posted 22 Jul in reply to Raulis Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Raulis
    Raulis avatar
    14 posts
    Member since:
    Jun 2016

    Posted 22 Jul Link to this post

    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
  5. Raulis
    Raulis avatar
    14 posts
    Member since:
    Jun 2016

    Posted 22 Jul in reply to Raulis Link to this post

    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.
  6. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1803 posts

    Posted 27 Jul Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017