Hi,
I am trying to get the total items count on my grid (total count of all the items in all the pages of the grid) in my code behind when Paging is enabled.
My data source for the grid returns 17 rows and the data is displayed in 2 pages.
When i do an Items count it only returns me 10 (since my page size is 10)
i tried this code which was suggested in this forum -
I am trying to get the total items count on my grid (total count of all the items in all the pages of the grid) in my code behind when Paging is enabled.
My data source for the grid returns 17 rows and the data is displayed in 2 pages.
When i do an Items count it only returns me 10 (since my page size is 10)
i tried this code which was suggested in this forum -
<telerik:RadGrid ID="GridInvoiceDetailsPO" runat="server" AllowPaging="True"
AutoGenerateColumns="False" PageSize="10" Visible="True" Skin="Outlook"
PagerStyle-Mode="NextPrevAndNumeric" PagerStyle-AlwaysVisible="true"
.... />
int
i = GridInvoiceDetailsPO.Items.Count;
GridInvoiceDetailsPO.AllowPaging =
false
;
GridInvoiceDetailsPO.Rebind();
int
j = GridInvoiceDetailsPO.Items.Count;
GridInvoiceDetailsPO.AllowPaging =
true
;
GridInvoiceDetailsPO.Rebind();
int
k = GridInvoiceDetailsPO.Items.Count;
But i, j and k all return 10. is there something i am doing wrong?
Also i dont just want to get the total count, i want to iterate through the collection and get/set some data.
Ullas