Last active
August 30, 2017 14:21
-
-
Save MikeTatsky/2bfea2db9733961dacd590978ed2e90f to your computer and use it in GitHub Desktop.
FancyGrid - Server side paging and sorting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new FancyGrid({ | |
title: 'Paging & Sorting', | |
width: 700, | |
height: 400, | |
data: { | |
proxy: { | |
url: 'paging.php' | |
} | |
}, | |
defaults: { | |
type: 'string', | |
width: 100, | |
sortable: true | |
}, | |
paging: true, | |
columns: [{ | |
index: 'company', | |
locked: true, | |
title: 'Company' | |
},{ | |
index: 'name', | |
title: 'Name' | |
},{ | |
index: 'surname', | |
title: 'Sur Name' | |
},{ | |
index: 'age', | |
title: 'Age', | |
type: 'number' | |
},{ | |
index: 'position', | |
locked: true, | |
title: 'Position', | |
width: 150 | |
}] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment