diff options
author | Michael Leibman <michael.leibman@gmail.com> | 2012-01-17 13:51:10 -0800 |
---|---|---|
committer | Michael Leibman <mleibman@google.com> | 2012-01-17 13:51:10 -0800 |
commit | b92ba76a5124d09880455fef5a488c2bab2aee9e (patch) | |
tree | 6b9de1fb8f2b915450b1bbadf6d1b28df6220c88 /examples/example-optimizing-dataview.html | |
parent | 061ac59fb6a4c09a49d5abe1fa86c26f9d13bf66 (diff) | |
download | SlickGrid-b92ba76a5124d09880455fef5a488c2bab2aee9e.zip SlickGrid-b92ba76a5124d09880455fef5a488c2bab2aee9e.tar.gz SlickGrid-b92ba76a5124d09880455fef5a488c2bab2aee9e.tar.bz2 |
More cleanup.
Diffstat (limited to 'examples/example-optimizing-dataview.html')
-rw-r--r-- | examples/example-optimizing-dataview.html | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/examples/example-optimizing-dataview.html b/examples/example-optimizing-dataview.html index 740781b..b97929f 100644 --- a/examples/example-optimizing-dataview.html +++ b/examples/example-optimizing-dataview.html @@ -3,10 +3,10 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>SlickGrid example: Optimizing DataView</title> - <link rel="stylesheet" href="../slick.grid.css" type="text/css" /> - <link rel="stylesheet" href="../css/smoothness/jquery-ui-1.8.16.custom.css" type="text/css" /> - <link rel="stylesheet" href="../controls/slick.pager.css" type="text/css" /> - <link rel="stylesheet" href="examples.css" type="text/css" /> + <link rel="stylesheet" href="../slick.grid.css" type="text/css"/> + <link rel="stylesheet" href="../css/smoothness/jquery-ui-1.8.16.custom.css" type="text/css"/> + <link rel="stylesheet" href="../controls/slick.pager.css" type="text/css"/> + <link rel="stylesheet" href="examples.css" type="text/css"/> <style> .cell-title { font-weight: bold; @@ -79,26 +79,24 @@ var dataView; var grid; var data = []; - var columns = [ - {id:"sel", name:"#", field:"num", behavior:"select", cssClass:"cell-selection", width:40, resizable:false, selectable:false }, - {id:"title", name:"Title", field:"title", width:120, minWidth:120, cssClass:"cell-title"}, - {id:"duration", name:"Duration", field:"duration"}, - {id:"%", name:"% Complete", field:"percentComplete", width:80, resizable:false, formatter:GraphicalPercentCompleteCellFormatter}, - {id:"start", name:"Start", field:"start", minWidth:60}, - {id:"finish", name:"Finish", field:"finish", minWidth:60}, - {id:"effort-driven", name:"Effort Driven", width:80, minWidth:20, maxWidth:80, cssClass:"cell-effort-driven", field:"effortDriven", formatter:BoolCellFormatter} + {id: "sel", name: "#", field: "num", behavior: "select", cssClass: "cell-selection", width: 40, resizable: false, selectable: false }, + {id: "title", name: "Title", field: "title", width: 120, minWidth: 120, cssClass: "cell-title"}, + {id: "duration", name: "Duration", field: "duration"}, + {id: "%", name: "% Complete", field: "percentComplete", width: 80, resizable: false, formatter: GraphicalPercentCompleteCellFormatter}, + {id: "start", name: "Start", field: "start", minWidth: 60}, + {id: "finish", name: "Finish", field: "finish", minWidth: 60}, + {id: "effort-driven", name: "Effort Driven", width: 80, minWidth: 20, maxWidth: 80, cssClass: "cell-effort-driven", field: "effortDriven", formatter: BoolCellFormatter} ]; var options = { - editable:false, - enableAddRow:false, - enableCellNavigation:true + editable: false, + enableAddRow: false, + enableCellNavigation: true }; var percentCompleteThreshold = 0; var prevPercentCompleteThreshold = 0; - var searchString = ""; var h_runfilters = null; function myFilter(item, args) { @@ -158,10 +156,10 @@ dataView.setFilterArgs(percentCompleteThreshold); dataView.setRefreshHints({ - ignoreDiffsBefore:renderedRange.top, - ignoreDiffsAfter:renderedRange.bottom + 1, - isFilterNarrowing:isNarrowing, - isFilterExpanding:isExpanding + ignoreDiffsBefore: renderedRange.top, + ignoreDiffsAfter: renderedRange.bottom + 1, + isFilterNarrowing: isNarrowing, + isFilterExpanding: isExpanding }); dataView.refresh(); |