1 | <!doctype html> |
---|
2 | <html lang="en"> |
---|
3 | <head> |
---|
4 | <title>Filter - wijgrid extension</title> |
---|
5 | <meta charset="utf-8" /> |
---|
6 | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
---|
7 | <meta name="description" content="Overview" /> |
---|
8 | <meta name="keywords" content="" /> |
---|
9 | <meta name="author" content="ComponentOne" /> |
---|
10 | |
---|
11 | <link href="../../themes/rocket/jquery-wijmo.css" rel="stylesheet" type="text/css" /> |
---|
12 | <link href="../../themes/wijmo/jquery.wijmo-open.2.2.2.css" rel="stylesheet" type="text/css" /> |
---|
13 | <link href="../../themes/wijmo/jquery.wijmo.wijcombobox.css" rel="stylesheet" type="text/css" /> |
---|
14 | <link href="../../themes/wijmo/jquery.wijmo.wijfilter.css" rel="stylesheet" type="text/css" /> |
---|
15 | <link href="../../themes/wijmo/jquery.wijmo.wijgrid.css" rel="stylesheet" type="text/css" /> |
---|
16 | |
---|
17 | <script src="../../external/jquery-1.8.0.min.js" type="text/javascript"></script> |
---|
18 | <script src="../../external/jquery-ui-1.8.23.custom.min.js" type="text/javascript"></script> |
---|
19 | <script src="../../external/globalize.min.js" type="text/javascript"></script> |
---|
20 | |
---|
21 | <script src="../../external/jquery.wijmo-open.all.2.2.2.min.js" type="text/javascript"></script> |
---|
22 | <script src="../../external/jquery.mousewheel.min.js" type="text/javascript"></script> |
---|
23 | <script src="../../wijmo/jquery.wijmo.wijdatasource.js" type="text/javascript"></script> |
---|
24 | <script src="../../wijmo/jquery.wijmo.wijcombobox.js" type="text/javascript"></script> |
---|
25 | <script src="../../wijmo/jquery.wijmo.wijfilter.js" type="text/javascript"></script> |
---|
26 | <script src="../../wijmo/jquery.wijmo.wijgrid.js" type="text/javascript"></script> |
---|
27 | |
---|
28 | <script src="js/jquery.wijmo.wijgrid-filter-ext.js" type="text/javascript"></script> |
---|
29 | |
---|
30 | <style type="text/css"> |
---|
31 | .wijmo-wijgrid .filterDialog-dialogButton |
---|
32 | { |
---|
33 | position: absolute; |
---|
34 | width: 32px; |
---|
35 | height: 100%; |
---|
36 | right: 0; |
---|
37 | top: 0; |
---|
38 | } |
---|
39 | |
---|
40 | .filterDialog-dialogContainer |
---|
41 | { |
---|
42 | overflow: visible !important; |
---|
43 | width: 400px; |
---|
44 | } |
---|
45 | |
---|
46 | .wijmo-wijgrid .wijmo-wijgrid-headerrow .ui-icon.ui-icon-triangle-1-n, |
---|
47 | .wijmo-wijgrid .wijmo-wijgrid-headerrow .ui-icon.ui-icon-triangle-1-s |
---|
48 | { |
---|
49 | left: 0 !important; |
---|
50 | } |
---|
51 | </style> |
---|
52 | |
---|
53 | <script type="text/javascript"> |
---|
54 | $(document).ready(function () { |
---|
55 | $("#demo").wijgridfilter({ |
---|
56 | allowSorting: true, |
---|
57 | data: [ |
---|
58 | [27, 'Canada', 'Adams, Craig', 32, 2009, 'Seria, Brunei'], |
---|
59 | [43, 'Canada', 'Boucher, Philippe', 36, 2008, 'Saint-Apollinaire, Quebec'], |
---|
60 | [24, 'Canada', 'Cooke, Matt', 30, 2008, 'Belleville, Ontario'], |
---|
61 | [87, 'Canada', 'Crosby, Sidney (C)', 21, 2005, 'Cole Harbour, Nova Scotia'], |
---|
62 | [1, 'United States', 'Curry, John', 25, 2007, 'Shorewood, Minnesota'], |
---|
63 | [9, 'Canada', 'Dupuis, Pascal', 30, 2008, 'Laval, Quebec'], |
---|
64 | [7, 'United States', 'Eaton, Mark', 32, 2006, 'Wilmington, Delaware'], |
---|
65 | [26, 'Ukraine', 'Fedotenko, Ruslan', 30, 2008, 'Kiev, U.S.S.R.'], |
---|
66 | [29, 'Canada', 'Fleury, Marc-Andre', 24, 2003, 'Sorel, Quebec'], |
---|
67 | [32, 'Canada', 'Garon, Mathieu', 31, 2009, 'Chandler, Quebec'], |
---|
68 | [2, 'United States', 'Gill, Hal', 34, 2008, 'Concord, Massachusetts'], |
---|
69 | [28, 'Canada', 'Godard, Eric', 29, 2008, 'Vernon, British Columbia'], |
---|
70 | [3, 'United States', 'Goligoski, Alex', 23, 2004, 'Grand Rapids, Minnesota'], |
---|
71 | [55, 'Russia', 'Gonchar, Sergei (A)', 35, 2005, 'Chelyabinsk, U.S.S.R.'] |
---|
72 | ], |
---|
73 | columns: [ |
---|
74 | { headerText: "Number", dataType: "number", dataFormatString: "n0" }, |
---|
75 | { headerText: "Nationality", filterValue: "Canada", filterOperator: "Equals" }, |
---|
76 | { headerText: "Player" }, |
---|
77 | { headerText: "Age", dataType: "number", dataFormatString: "n0" }, |
---|
78 | { headerText: "Acquired" }, |
---|
79 | { headerText: "Birthplace" } |
---|
80 | ] |
---|
81 | }); |
---|
82 | |
---|
83 | }); |
---|
84 | </script> |
---|
85 | </head> |
---|
86 | <body class="demo-single"> |
---|
87 | <div class="container"> |
---|
88 | <div class="header"> |
---|
89 | <h2> |
---|
90 | Overview</h2> |
---|
91 | </div> |
---|
92 | <div class="main demo"> |
---|
93 | <table id="demo"></table> |
---|
94 | |
---|
95 | <!-- End demo markup --> |
---|
96 | <div class="demo-options"> |
---|
97 | <!-- Begin options markup --> |
---|
98 | <!-- End options markup --> |
---|
99 | </div> |
---|
100 | </div> |
---|
101 | <div class="footer demo-description"> |
---|
102 | <p> |
---|
103 | This sample shows a wijgrid extension which uses the wijfilter to create an Excel-like filter dialog. |
---|
104 | </p> |
---|
105 | </div> |
---|
106 | </div> |
---|
107 | </body> |
---|
108 | </html> |
---|