Skip to content

Commit

Permalink
fix(datagrid): apply config column sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
james-rae committed Mar 20, 2015
1 parent 49841ab commit 2799e61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@
"id": "nameCol",
"fieldName": "siteShortName_en",
"width": "500px",
"orderable": false,
"orderable": true,
"type": "string",
"alignment": 1,
"title": "Station Name",
Expand Down
5 changes: 3 additions & 2 deletions src/js/RAMP/Modules/datagrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ define([
}

/**
* Creates a Data table based on the grid configuration specified in the application config object. See http://www.datatables.net/usage/columns for addition information on config parameters.
* Creates a Data table based on the grid configuration specified in the application config object. See http://datatables.net/reference/option/ for addition information on config parameters.
*
* @method createDatatable
* @private
Expand Down Expand Up @@ -423,7 +423,8 @@ define([
width: column.width ? column.width : "100px",
type: column.sortType,
className: column.alignment ? "" : "center",
render: rowRenderer
render: rowRenderer,
orderable: column.orderable
};
}),
dom: '<"jqgrid_table_wrapper full-table"t><"datagrid-info-notice simple"><"status-line"p>',
Expand Down

0 comments on commit 2799e61

Please sign in to comment.