Skip to content

Instantly share code, notes, and snippets.

@MikeTatsky
Last active August 30, 2017 14:21
Show Gist options
  • Save MikeTatsky/2bfea2db9733961dacd590978ed2e90f to your computer and use it in GitHub Desktop.
Save MikeTatsky/2bfea2db9733961dacd590978ed2e90f to your computer and use it in GitHub Desktop.
FancyGrid - Server side paging and sorting
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