Hello Subbu ,
Thank you for contacting Infragistics Developer Support.
When paging is enabled the grid generates only the rows needed to be displayed for the current page.
So if the page size is set to 10 then the Rows.Count will always be 10.
You can refer to the following forum post for a possible solution where you can get the total record count when paging and filtering is enabled:
http://www.infragistics.com/community/forums/t/42249.aspx
Let me know if you have any questions or concerns.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://www.infragistics.com/support
You can get the total record count on the consequential postbacks after filtering has occurred in a similar way.
For example you could disable and enable the paging on Page_Load .For example:
this.WebDataGrid1.Behaviors.Paging.Enabled = false;
this.WebDataGrid1.DataBind();
int totalRowCount = WebDataGrid1.Rows.Count;
this.WebDataGrid1.Behaviors.Paging.Enabled = true;
Let me know if you have any questions.
Hi,
I tried ur solution, but it doesnt worked out :( Just go throw the following things and provide me the solution.
1. 50records loads into a page with page size 50. (Cutsom Pager, ODS is used for binding )
2. Filtering the records. In this step, Filtering/Filtered event gets a hit and 3postback happens with Grid.Databind().So i can have the value on Filtered event, but on successive calls, i m losing the filtered record count.
3. After filtering, 30records appears in the screen.
4. Now, i am changing the pagesize, during this operation, Filtering/Filtered events is not getting fired. I need some events to be fired ( related to Filters) on each and every postback of the page.
If there is event, i can have some processing logic.
Thanks,
Subbu
Hello Subbu,
I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know.
Developer Support Engineer