WebGrid Page Post Back Does Not Process Additional Rows Loaded

2 replies. Last post: May 5, 2010 8:02 AM by A Yousif
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
A YousifMember

Our grids are set up to load 100 rows.  When we scroll to the bottom, it loads more data which is fine.  However, when the user checks our custom check box on any rows loaded with "Load More Data" they are not processed when the page is posted back.

Also, the number of data rows loaded does not presist on post backs, i.e., they go back to our default of 100.

This is very problematic because the LoadPostData of the check boxes for the additional rows loaded never get hit since the grid doesn't process anything beyond the default of 100 rows.

I'm currently getting around this by storing the VirtualPageSize into a session variable and restoring it as needed.  But I also had to add, for post backs, specific code to process through the post back data and update the loaded rows since the grid doesn't do that internally which I don't understand.  I can see not persisting/maintaining this on a page load, but why not on a post back?  This is important since you allow templated controls that MUST be processed on post backs that may not come from the grid specifically.

Also, I need to get the number of rows loaded compared with the VirtualPageSize.  If I change the VirtualPageSize like I'm doing, the next load would then load that number, i.e., if it's 200, then the next loads 200 more which then becomes 400 and so on.  I need to track the number of rows loaded versus how many to load.  Where do I do this?  I can't find a server-side property that tells me how many rows are loaded.

All times are GMT -5. The time now is 8:37 PM.
Previous Next