The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Can you add a SelectCountMethod property to the esDataSource?

Last post 12-18-2007, 9:09 AM by Mike.Griffin. 1 replies.
Sort Posts: Previous Next
  •  12-17-2007, 7:14 PM 7244

    Can you add a SelectCountMethod property to the esDataSource?

    The problem with setting TotalRowCount once in Page_Load is that it assumes the number of rows will remain static.  Unfortunately, this is not always the case.  Rows can be added, deleted, or you may have a set of controls outside of the grid which allows the user to filter and decrease the size of the selection using Ajax.  After some experimentation, I suspect that, at least for RADGrid, TotalRowCount needs to be set before any of the select events (e.g. esPreSelect) are fired.  This is likely why the standard ASP ObjectDataSource has "ObjectDataSource.SelectCountMethod" (in addition to ObjectDataSource.SelectMethod).  So the question now is:

    • Can you add a SelectCountMethod property to the esDataSource which we can wire up to a method which returns the TotalRowCount?
  •  12-18-2007, 9:09 AM 7252 in reply to 7244

    Re: Can you add a SelectCountMethod property to the esDataSource?

    Yes, we can add this property, let me do some research.

    EntitySpaces | Twitter | BLOG | Please honor our Software License
View as RSS news feed in XML