-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest
More file actions
101 lines (86 loc) · 5.37 KB
/
test
File metadata and controls
101 lines (86 loc) · 5.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html style="padding:0;width:100%;height: 99%">
<head>
<title>Grid Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="http://www.htmltreegrid.com/demo/external/js/adapters/jquery/jquery-1.8.2.js"></script>
<script type="text/javascript" src="http://www.htmltreegrid.com/demo/external/js/adapters/jquery/jquery-ui-1.9.1.custom.min.js"></script>
<script type="text/javascript" src="http://www.htmltreegrid.com/demo/external/js/adapters/jquery/jquery.maskedinput-1.3.js"></script>
<script type="text/javascript" src="http://www.htmltreegrid.com/demo/external/js/adapters/jquery/jquery.watermarkinput.js"></script>
<script type="text/javascript" src="http://www.htmltreegrid.com/demo/external/js/adapters/jquery/jquery.ui.menu.js"></script>
<script type="text/javascript" src="http://www.htmltreegrid.com/demo/external/js/adapters/jquery/jquery.toaster.js"></script>
<script type="text/javascript" src="minified.js"></script>
<script type="text/javascript" src="http://www.htmltreegrid.com/demo/examples/js/Configuration.js"></script>
<script type="text/javascript" src="http://www.htmltreegrid.com/demo/themes.js"></script>
<link rel="stylesheet" href="http://www.htmltreegrid.com/demo/flexicious/css/flexicious.css" type="text/css"/>
<script>
/*
this.addEventListener(this,flxConstants.EVENT_KEY_UP,function(e){
var str = String.fromCharCode(e.keyCode);
if((str>='0'&&str<='9')|| (e.keyCode >= 96 && e.keyCode <= 105)||(str>='a'&&str<='z')||(str>='A'&&str<='Z') || e.keyCode == flxConstants.KEYBOARD_DELETE|| e.keyCode == flxConstants.KEYBOARD_BACKSPACE){
this.dispatchEvent(new flexiciousNmsp.BaseEvent(flxConstants.EVENT_VALUE_COMMIT));
}
});//so delay change is initialized
this.addEventListener(this,flxConstants.EVENT_KEY_DOWN,function(e)
{
this.textBoxValue=this.getTextBox().value;
var str = String.fromCharCode(e.keyCode);
if((str>='0'&&str<='9')||(str>='a'&&str<='z')||(str>='A'&&str<='Z')){
this.dispatchEvent(new flexiciousNmsp.FlexDataGridEvent(flxConstants.EVENT_CHANGE));
}
});//some browsers do not dispatch change on keydown.
*/
$(document).ready(function () {
var grid = new flexiciousNmsp.FlexDataGrid(document.getElementById("gridContainer"),
{
configuration: '<grid id="grid" editable="true" enablePrint="true" enablePreferencePersistence="true" enableExport="true" forcePagerRow="true" pageSize="50" enableFilters="true" enableFooters="true" enablePaging="true">' +
' <level>' +
' <columns>' +
' <column type="checkbox"/>'+
' <column dataField="id" headerText="ID" footerLabel="Sum: " footerOperation="sum" footerOperationPrecision="2"/>' +
' <column dataField="type" headerText="Type" itemRenderer="flexiciousNmsp.EncodedItemRenderer" filterControl="TextInput" filterOperation="Contains" />' +
' </columns>' +
' </level>' +
' ' +
' </grid>',
dataProvider: [
{ "id": "5001", "type": "<None>", "active": true },
{ "id": "5002", "type": "Glazed", "active": true },
{ "id": "5005", "type": "Sugar", "active": true },
{ "id": "5007", "type": "Powdered Sugar", "active": false },
{ "id": "5006", "type": "Chocolate with Sprinkles", "active": true },
{ "id": "5003", "type": "Chocolate", "active": false },
{ "id": "5004", "type": "Maple", "active": true }
]
});
});
/**
* Flexicious
* Copyright 2011, Flexicious LLC
*/
(function () {
"use strict";
var EncodedItemRenderer;
EncodedItemRenderer = function (tag) {
flexiciousNmsp.Label.apply(this, [tag]);
};
flexiciousNmsp.EncodedItemRenderer = EncodedItemRenderer; //add to name space
EncodedItemRenderer.prototype = new flexiciousNmsp.Label(); //setup hierarchy
EncodedItemRenderer.prototype.typeName = EncodedItemRenderer.typeName = "EncodedItemRenderer";//for quick inspection
EncodedItemRenderer.prototype.getClassNames = function () { //for support of "is" keyword
return ["UIComponent", this.typeName];
};
EncodedItemRenderer.prototype.setText = function (val) {
this.domElement.textContent = val;
};
}());
</script>
</head>
<!--
<body onload="myCompanyNameSpace.onBodyLoad();myCompanyNameSpace.SizeTabs();">
-->
<body style="padding:0;width:100%;height: 99%">
<div id="gridContainer" style="padding:0;width:100%;height: 99%"></div>
</div>
</body>
</html>