开发者

GridView Sorting event is not firing

开发者 https://www.devze.com 2023-01-17 19:11 出处:网络
GridView Sorting and Paging are works fine when I set EnableSotringAndPagin开发者_如何学运维gCallbacks to false.

GridView Sorting and Paging are works fine when I set EnableSotringAndPagin开发者_如何学运维gCallbacks to false. however when I set it to true the sort event does not fire (the paging works fine).

any ideas?


That is actually the correct behavior.

By default, when a sorting or paging operation is performed, the GridView control posts back to the server to perform the operation. When the EnableSortingAndPagingCallbacks property is set to true, a service is called on the client to perform sorting and paging operations, which eliminates the need to post back to the server.

Read this for more: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.enablesortingandpagingcallbacks.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号