jQuery UI Widgets › Forums › Grid › Grid paging, sorting from XML datasource
This topic contains 0 replies, has 1 voice, and was last updated by Gopre400 11 years, 7 months ago.
-
Author
-
Hi I create a SQL query and user .ajax call to WebService which returns data in XML format. However the grid with paging does not sort in the same order as the query. Is this the behavior I should expect? Is there a work-around to sort a grid with paging?
here is source of Grid…
datafields: [
{ name: ‘SignID’ },
{ name: ‘District’, type: ‘int’ },
{ name: ‘ActivityCode’, type: ‘int’ },
{ name: ‘SignQuantity’, type: ‘int’},
{ name: ‘SignText’, type: ‘string’ },
{ name: ‘SignNote’ },
{ name: ‘SignSize’ },
{ name: ‘RequestedBy’ },
{ name: ‘RequestedDate2’ },
{ name: ‘RequestID’ },
{ name: ‘RFI’ },
],
async: false,
record: ‘Table’,
url: ‘SRQWebService.asmx/GetSRQViewStreetPlatesGrid’,
sortcolumn: ‘RFI’,
sortdirection: ‘dsc’,
pagesize: 20And here is grid…
$(“#jqxgrid”).jqxGrid(
{
width: ‘100%’,
source: dataAdapter,
theme: ‘darkblue’,
autoheight: true,
sortable: true,
altrows: true,
enabletooltips: true,
pageable: true,
showstatusbar: true,
editable: true,
groupsrenderer: groupsrenderer,
groupable: true,
groupsexpandedbydefault: true,
closeablegroups: false,
editmode: ‘click’,
selectionmode: ‘singlerow’,
ready: function () {
$(“#jqxgrid”).jqxGrid(‘expandallgroups’);
$(‘#jqxgrid’).jqxGrid(‘gotopage’, gridpagenum);
}, -
AuthorPosts
You must be logged in to reply to this topic.