27 { name: 'Address', type: 'string' }, |
27 { name: 'Address', type: 'string' }, |
28 { name: 'Refcnt', type: 'int' }, |
28 { name: 'Refcnt', type: 'int' }, |
29 { name: 'Chip', type: 'string' }, |
29 { name: 'Chip', type: 'string' }, |
30 { name: 'Description', type: 'string' } |
30 { name: 'Description', type: 'string' } |
31 ], |
31 ], |
32 url: 'getbus.php', |
32 url: 'getbus.php' |
33 sortcolumn: 'Address', |
|
34 sortdirection: 'asc' |
|
35 }; |
33 }; |
36 var dataAdapter_bus = new $.jqx.dataAdapter(source_bus,{ |
34 var dataAdapter_bus = new $.jqx.dataAdapter(source_bus); |
37 downloadComplete: function (data, status, xhr) { }, |
|
38 loadComplete: function (data) { }, |
|
39 loadError: function (xhr, status, error) { } |
|
40 }); |
|
41 $("#jqxgrid_bus").jqxGrid( { |
35 $("#jqxgrid_bus").jqxGrid( { |
42 width: 770, height: 280, |
36 width: 770, height: 280, |
43 source: dataAdapter_bus, |
37 source: dataAdapter_bus, |
44 theme: 'ui-redmond', |
38 theme: 'ui-redmond', |
45 columnsresize: true, |
39 columnsresize: true, |