Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 22, 2013 01:47 AM by Keep it Simple
Oct 25, 2012 11:55 PM|LINK
Hi, in ASP.NET v4.5, how does the new GridView.AllowCustomPaging and GridView.VirtualItemCount properties work?
Apart from high level instructions, there are no examples in the documentation:
ASP.NET 2.0 did have two tutorials released back in 2006:
But obviously did not include the new V4.5 custom paging features released in 2012.
Does anybody know how to get the new GridView custom paging and sorting to work by short example?
PS. I'm using an ObjectDataSource with GridView
Oct 26, 2012 03:38 AM|LINK
This page has the sample code about how to implement/use AllowCustomPaging and VirtualItemCount
Oct 26, 2012 05:12 AM|LINK
Praba, thanks for the reply and link. However, the link shows a technique that:
(A) Loads all records into a Session object.
The issue I see with loading all records into Session, is say I have 15,000 records - they'll all be loaded into the web server memory for each end user. Hence, this does not propoerly solve the performance problem.
The tutorials from 2006, (listed above), only retrieves the subset of records e.g. 10 records only, every time the user clciks the next page. It does not load 15,000 recods into memory for each user.
(B) Uses only code behind.
Iinstead of declarative - except fot the page index change event, which may require a couple of lines of code behind.
Does anybody have any idea on how to get the new GridView custom paging in .Net v4.5 to work with the ObjectDataSource?
Oct 26, 2012 05:17 AM|LINK
Try this one.
Oct 26, 2012 06:27 AM|LINK
Both links show how to do custom paging circa 2006. I know how to do this as mentioned already.
My question is: how do you use the NEW GridView custom paging in ASP.NET v4.5, recently released in
Oct 26, 2012 06:53 AM|LINK
Oct 26, 2012 07:32 AM|LINK
Thanks for help, but I am not sure you fully understand my question.
I am not merely talking about posts released in 2012. I am referring to the newsest custom paging technique in v4.5 for the GridView.
The above link does not use the new GridView.AllowCustomPaging
properties now available in ASP.NET V4.5.
Does anyone know how to hook this up to an ObjectDatsSource?
Feb 19, 2013 03:11 PM|LINK
Did you find an example? Please let us know if you did. Thanks!
Feb 19, 2013 07:45 PM|LINK
No I have not found an example.
It's a case of new feature with inadequate documentation.
May 17, 2013 06:50 AM|LINK
PS. Others have the same question, without an adequate answer: