7. Paginated Controls
* Enabling AJAX on the QDataGrid
<< * QDataGrid Pagination   |   Back to Main   |   * Simple QDataRepeater using AJAX-triggered Pagination >>

View Source
will open in a new window
Enabling AJAX-based Sorting and Pagination
In this example, we modify our sortable and paginated QDataGrid to now perform AJAX-based sorting and pagination.

We literally just add one line of code to enable AJAX.

By setting UseAjax to true, the sorting and pagiantion features will now execute via AJAX. Try it out, and notice how paging and resorting doesn't involve the browser to do a full page refresh.
Previous|12|Next Results: Viewing items 1-20 of 30.
Person ID First Name Last Name Sorted
20 tester 1234
28 34 34
13 jj a
26 nikos aliagas
27 sadf asdf
15 a b
9 Linda Broy
11 Brett Carlisl
17 234 edwe
16 John Forbes
23 Bill Gates
4 Miguel Ho
30 hello how r u
19 jhjh jkj
21 Steve Jobs
8 Samanthahg Jonesssssssss
25 alma korte
2 Kendall ghjh Nix11
12 Jacob Pratt
29 qq qqqqq