Sorting and Paging Callback in GridView

One drawback with a grid, you can sort or search is that each time re-sort the grid or move to another page, the browser should result in a publication and to make a completely new HTML page. This means that the page scrolls and flashes back to the beginning, making the overall user experience a bit shocking.

The GridView has a feature that improves the situation: the property is called EnableSortingAndPagingCallbacks. If you set this property to true, the GridView uses a different technique to refresh the page. Instead of forcing a post back when you click a column header or a page link, the browser sends an asynchronous request to the server for new information. When the browser receives this information, it changes the current page using the HTML DOM. This technique creates a more transparent, the flicker-free browsing experience. Best of all, if a browser does not support this feature, GridView gracefully degrade the standard of post-return model. The only restriction is that you can not use the sorting and paging callback on a grid that uses templates.

You can leave a response, or trackback from your own site.

Send Inquiry Message With Your Contact Details