Number of ALL items in the Grid

1 Answer 73 Views
GridView
Thierry
Top achievements
Rank 1
Thierry asked on 13 Dec 2023, 01:21 PM

When using the RadGridView WPF component in conjunction with RadDataPager, how can I obtain the total number of grid elements ?

The MyRadGridView.Items method returns only the number of elements on the current page !

Thanks for your help

1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 18 Dec 2023, 08:14 AM

Hello Thierry,

To get the total count of all items, the ItemCount and TotalItemCount properties of the Items collection of RadGridView can be utilized.

If this suggestion is not helpful, you could expose an auto-calculated property, which will return the count of the items that are bound to the Source property of the RadDataPager element.

I hope the provided information will be of help to you.

Regards,
Stenly
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
GridView
Asked by
Thierry
Top achievements
Rank 1
Answers by
Stenly
Telerik team
Share this question
or