Why isn't this event in the WHDG? PageIndexChangED is prewired. You must have had a reason for not including it, correct?
Thanks,
Lee....
Hi Lee,
By design, only the PageIndexChanged event is included in both WebDataGrid and WebHierarchicalDataGrid due to the architecture of the controls and specifically the way data is requested from the datasource when paging is used.
Changing the page index is however cancellable by using the clientside PageIndexChanging event of the grid's paging behavior.
Please feel free to contact me if you have any questions.
Thank you Petar.
It still seems a little strange, however. All other events with an "...ed" have an "...ing" event as well.
The problem we ran into was that we do all of our validation on the server and wanted to cancel the PageIndexChanging event in order to keep the user on the same page if any data failed validation. We were losing our formatting of error rows when the page was finally rendered on the client using other server side events. But, after some head-scratching we finally got it formatting correctly. :-)
Lee...