FlexGrid
Searching
The FlexGridSearch control provides a simple UI for performing full-text searches on FlexGrid controls.
Features
ID
Start
End
Country
Product
Color
Amount
Amount2
Discount
Active
1
1/25/2025
1/25/2025
German
Gadget
Green
$581.61
$1,030.17
14%
2
2/25/2025
2/25/2025
Italy
Gadget
Green
($4,673.75)
$3,499.71
13%
3
3/25/2025
3/25/2025
China
Gadget
Black
($2,265.49)
$4,535.49
20%
4
4/25/2025
4/25/2025
France
Widget
Green
$3,964.40
$432.90
21%
5
5/25/2025
5/25/2025
UK
Widget
Red
($1,744.99)
$3,355.18
12%
6
6/25/2025
6/25/2025
France
Gadget
Red
$4,276.37
$1,106.71
23%
7
7/25/2025
7/25/2025
US
Widget
Green
($4,376.92)
$1,408.24
18%
8
8/25/2025
8/25/2025
Japan
Gadget
Black
$1,996.52
$3,077.04
21%
9
9/25/2025
9/25/2025
Korea
Widget
Red
($3,442.35)
$4,068.26
16%
10
10/25/2025
10/25/2025
US
Widget
Green
($2,973.96)
$4,568.15
1%
11
11/25/2025
11/25/2025
Canada
Widget
Green
($3,217.79)
$4,414.46
14%
12
12/25/2025
12/25/2025
UK
Gadget
Red
$1,556.19
$1,705.14
1%
13
1/25/2025
1/25/2025
Canada
Gadget
Red
($4,981.75)
$4,917.13
24%
14
2/25/2025
2/25/2025
China
Gadget
Green
($397.56)
$1,702.41
19%
15
3/25/2025
3/25/2025
Italy
Widget
Green
$199.60
$4,148.18
14%
16
4/25/2025
4/25/2025
China
Gadget
Green
($176.56)
$506.04
11%
17
5/25/2025
5/25/2025
Canada
Widget
Black
($542.28)
$1,471.61
21%
18
6/25/2025
6/25/2025
Japan
Gadget
Red
$4,319.97
$4,562.80
7%
19
7/25/2025
7/25/2025
France
Gadget
Green
($1,397.67)
$3,784.00
20%
20
8/25/2025
8/25/2025
UK
Widget
Black
($3,476.95)
$4,926.25
1%
21
9/25/2025
9/25/2025
UK
Gadget
Red
$3,295.03
$1,143.47
10%
22
10/25/2025
10/25/2025
China
Widget
Red
($4,598.11)
$3,889.99
9%
23
11/25/2025
11/25/2025
Korea
Widget
Red
($3,396.86)
$4,829.86
11%
24
12/25/2025
12/25/2025
German
Widget
Green
$4,399.82
$2,594.90
5%
25
1/25/2025
1/25/2025
Korea
Gadget
Red
$3,235.00
$1,183.91
21%
26
2/25/2025
2/25/2025
Korea
Widget
Red
$341.60
$1,285.88
0%
27
3/25/2025
3/25/2025
France
Widget
Red
$1,561.78
$4,661.58
8%
28
4/25/2025
4/25/2025
German
Widget
Red
($191.55)
$812.79
1%
29
5/25/2025
5/25/2025
Korea
Widget
Black
$1,516.57
$466.65
16%
30
6/25/2025
6/25/2025
Italy
Gadget
Red
$4,470.85
$527.11
23%
31
7/25/2025
7/25/2025
Canada
Widget
Black
$4,796.84
$1,327.69
10%
32
8/25/2025
8/25/2025
France
Gadget
Black
$2,871.26
$3,139.54
9%
33
9/25/2025
9/25/2025
US
Gadget
Green
($3,744.20)
$4,940.47
6%
34
10/25/2025
10/25/2025
Japan
Widget
White
($2,588.21)
$914.61
7%
35
11/25/2025
11/25/2025
Japan
Widget
Black
($3,709.87)
$379.20
18%
36
12/25/2025
12/25/2025
German
Gadget
Green
($2,500.33)
$1,337.27
18%
37
1/25/2025
1/25/2025
China
Gadget
White
$1,169.17
$2,552.76
16%
38
2/25/2025
2/25/2025
UK
Widget
White
($3,578.79)
$1,080.73
23%
39
3/25/2025
3/25/2025
UK
Gadget
Black
($3,175.21)
$1,174.79
18%
40
4/25/2025
4/25/2025
US
Widget
Red
($2,410.67)
$3,407.91
11%
41
5/25/2025
5/25/2025
UK
Widget
Black
$1,645.36
$2,607.51
12%
42
6/25/2025
6/25/2025
German
Widget
Red
($38.23)
$4,135.44
12%
43
7/25/2025
7/25/2025
China
Widget
White
($2,409.07)
$2,411.30
22%
44
8/25/2025
8/25/2025
Korea
Gadget
Black
($1,396.05)
$115.18
0%
45
9/25/2025
9/25/2025
US
Widget
White
($78.75)
$3,762.99
18%
46
10/25/2025
10/25/2025
Japan
Gadget
White
($3,179.15)
$97.09
17%
47
11/25/2025
11/25/2025
Japan
Widget
Green
($1,872.55)
$342.34
19%
48
12/25/2025
12/25/2025
US
Widget
White
$2,186.94
$743.95
5%
49
1/25/2025
1/25/2025
Canada
Widget
White
($4,924.10)
$1,601.10
14%
50
2/25/2025
2/25/2025
US
Widget
Green
($3,540.61)
$4,553.11
9%
51
3/25/2025
3/25/2025
US
Gadget
Red
($2,587.64)
$2,811.82
9%
52
4/25/2025
4/25/2025
Canada
Widget
Red
$3,195.89
$3,713.24
6%
53
5/25/2025
5/25/2025
German
Widget
White
$2,313.31
$1,820.51
0%
54
6/25/2025
6/25/2025
Italy
Gadget
Black
($3,193.81)
$1,565.20
17%
55
7/25/2025
7/25/2025
US
Gadget
Green
$1,992.89
$573.93
24%
56
8/25/2025
8/25/2025
Korea
Gadget
White
($2,311.22)
$3,514.34
12%
57
9/25/2025
9/25/2025
China
Gadget
Black
$201.09
$2,080.39
15%
58
10/25/2025
10/25/2025
US
Widget
Black
$2,042.44
$3,005.04
2%
59
11/25/2025
11/25/2025
France
Widget
Green
$2,813.06
$4,125.22
23%
60
12/25/2025
12/25/2025
Japan
Gadget
White
($3,239.35)
$2,122.54
1%
61
1/25/2025
1/25/2025
Canada
Gadget
White
$3,444.62
$86.37
14%
62
2/25/2025
2/25/2025
German
Widget
Black
($3,247.41)
$3,393.65
25%
63
3/25/2025
3/25/2025
Korea
Widget
Red
$1,792.87
$2,450.05
3%
64
4/25/2025
4/25/2025
Italy
Widget
White
($3,030.91)
$1,013.95
19%
65
5/25/2025
5/25/2025
Canada
Gadget
White
($121.49)
$4,450.30
3%
66
6/25/2025
6/25/2025
Canada
Widget
Red
($1,085.25)
$361.52
9%
67
7/25/2025
7/25/2025
UK
Widget
White
($3,633.76)
$1,771.16
21%
68
8/25/2025
8/25/2025
UK
Widget
White
$3,547.59
$2,502.69
9%
69
9/25/2025
9/25/2025
China
Gadget
Black
$1,670.89
$778.90
6%
70
10/25/2025
10/25/2025
Canada
Widget
Black
$2,526.83
$797.32
5%
71
11/25/2025
11/25/2025
UK
Widget
Red
$2,468.49
$788.64
8%
72
12/25/2025
12/25/2025
German
Gadget
Black
($4,369.28)
$1,593.61
8%
73
1/25/2025
1/25/2025
China
Widget
Black
($4,571.27)
$1,695.21
22%
74
2/25/2025
2/25/2025
Japan
Widget
Red
($3,951.78)
$2,083.58
13%
75
3/25/2025
3/25/2025
US
Widget
Black
($4,441.14)
$832.59
4%
76
4/25/2025
4/25/2025
UK
Gadget
Red
($71.63)
$3,671.35
3%
77
5/25/2025
5/25/2025
UK
Gadget
Red
$4,479.22
$2,078.84
21%
78
6/25/2025
6/25/2025
Korea
Gadget
Green
$3,725.41
$2,328.42
9%
79
7/25/2025
7/25/2025
US
Widget
Black
$2,121.58
$687.92
3%
80
8/25/2025
8/25/2025
China
Widget
Green
($4,839.98)
$4,216.05
19%
81
9/25/2025
9/25/2025
Italy
Widget
Black
$464.71
$1,096.94
22%
82
10/25/2025
10/25/2025
Japan
Gadget
Red
$4,993.37
$530.08
10%
83
11/25/2025
11/25/2025
Italy
Gadget
Green
$4,308.05
$929.56
3%
84
12/25/2025
12/25/2025
France
Widget
Black
($345.70)
$3,404.35
18%
85
1/25/2025
1/25/2025
US
Gadget
Red
$2,470.75
$1,365.41
5%
86
2/25/2025
2/25/2025
Korea
Widget
Red
$2,974.68
$1,451.84
9%
87
3/25/2025
3/25/2025
US
Widget
Green
$3,380.00
$743.35
2%
88
4/25/2025
4/25/2025
UK
Widget
Green
$4,198.18
$874.65
22%
89
5/25/2025
5/25/2025
Canada
Gadget
Green
$3,962.13
$4,859.84
18%
90
6/25/2025
6/25/2025
France
Gadget
Black
$4,486.36
$3,443.52
6%
91
7/25/2025
7/25/2025
US
Widget
Black
($739.31)
$4,204.48
15%
92
8/25/2025
8/25/2025
Korea
Widget
Black
($4,337.05)
$164.47
13%
93
9/25/2025
9/25/2025
UK
Gadget
Black
($1,054.50)
$1,139.20
17%
94
10/25/2025
10/25/2025
UK
Widget
White
$1,867.47
$1,840.15
20%
95
11/25/2025
11/25/2025
China
Gadget
Black
$2,508.62
$2,784.31
13%
96
12/25/2025
12/25/2025
German
Gadget
Red
($2,573.47)
$3,515.47
15%
97
1/25/2025
1/25/2025
Canada
Widget
White
$3,303.90
$2,819.65
15%
98
2/25/2025
2/25/2025
France
Gadget
Black
$185.33
$2,765.45
1%
99
3/25/2025
3/25/2025
Japan
Widget
Red
($4,897.56)
$1,150.66
8%
100
4/25/2025
4/25/2025
UK
Gadget
Green
$3,858.70
$4,709.00
8%
101
5/25/2025
5/25/2025
Korea
Gadget
Black
$3,031.90
$3,096.03
11%
102
6/25/2025
6/25/2025
UK
Gadget
White
($2,068.79)
$1,809.67
13%
103
7/25/2025
7/25/2025
Canada
Gadget
White
$769.06
$1,426.45
23%
104
8/25/2025
8/25/2025
Canada
Widget
White
($2,960.58)
$1,778.54
4%
105
9/25/2025
9/25/2025
Korea
Widget
Red
$3,079.95
$1,441.81
20%
106
10/25/2025
10/25/2025
China
Widget
White
($1,640.09)
$267.16
11%
107
11/25/2025
11/25/2025
German
Widget
Red
($4,001.59)
$2,735.31
19%
108
12/25/2025
12/25/2025
German
Gadget
White
($4,393.39)
$2,913.82
17%
109
1/25/2025
1/25/2025
US
Gadget
White
$4,307.16
$555.10
22%
110
2/25/2025
2/25/2025
Japan
Gadget
White
($608.07)
$3,185.22
0%
111
3/25/2025
3/25/2025
Korea
Gadget
Red
$622.76
$1,226.33
20%
112
4/25/2025
4/25/2025
Canada
Gadget
White
($3,317.88)
$1,199.43
11%
113
5/25/2025
5/25/2025
UK
Widget
Black
$4,728.72
$3,645.10
3%
114
6/25/2025
6/25/2025
US
Widget
Green
$2,624.74
$1,114.02
15%
115
7/25/2025
7/25/2025
US
Widget
Green
($4,633.54)
$3,949.78
13%
116
8/25/2025
8/25/2025
France
Widget
Red
($412.30)
$4,240.71
8%
117
9/25/2025
9/25/2025
UK
Gadget
Red
($450.15)
$2,177.36
22%
118
10/25/2025
10/25/2025
Japan
Gadget
Green
$4,698.07
$3,830.23
20%
119
11/25/2025
11/25/2025
Italy
Gadget
Green
$3,423.49
$4,150.02
21%
120
12/25/2025
12/25/2025
Japan
Widget
Red
$3,537.71
$3,057.85
6%
121
1/25/2025
1/25/2025
China
Gadget
Red
$1,419.01
$2,244.67
15%
122
2/25/2025
2/25/2025
Japan
Gadget
White
$3,061.96
$371.06
0%
123
3/25/2025
3/25/2025
France
Gadget
Green
($4,850.72)
$591.99
20%
124
4/25/2025
4/25/2025
UK
Widget
Black
$3,304.06
$2,930.06
15%
125
5/25/2025
5/25/2025
US
Widget
Green
$488.37
$4,094.16
5%
126
6/25/2025
6/25/2025
UK
Widget
Green
$1,700.96
$3,335.13
15%
127
7/25/2025
7/25/2025
UK
Gadget
Red
($4,505.82)
$4,353.42
14%
128
8/25/2025
8/25/2025
Japan
Gadget
White
($1,005.21)
$1,014.45
24%
129
9/25/2025
9/25/2025
China
Widget
Black
$4,433.39
$1,392.58
5%
130
10/25/2025
10/25/2025
China
Widget
Black
($1,740.39)
$1,830.69
19%
131
11/25/2025
11/25/2025
France
Widget
Green
($4,393.34)
$3,289.08
3%
132
12/25/2025
12/25/2025
Japan
Widget
Black
$1,315.57
$2,119.61
16%
133
1/25/2025
1/25/2025
German
Gadget
Green
$3,851.09
$1,742.80
13%
134
2/25/2025
2/25/2025
China
Widget
Black
($3,178.51)
$1,719.06
13%
135
3/25/2025
3/25/2025
Italy
Widget
Green
$4,048.32
$2,829.40
19%
136
4/25/2025
4/25/2025
Korea
Gadget
Green
($4,578.15)
$86.97
10%
137
5/25/2025
5/25/2025
German
Widget
Green
$453.23
$3,878.80
4%
138
6/25/2025
6/25/2025
US
Widget
Red
($2,659.76)
$2,628.32
11%
139
7/25/2025
7/25/2025
Korea
Widget
Black
$3,973.58
$4,208.72
13%
140
8/25/2025
8/25/2025
Korea
Gadget
Black
($3,954.86)
$2,072.24
16%
141
9/25/2025
9/25/2025
UK
Gadget
Green
($2,247.37)
$2,112.34
2%
142
10/25/2025
10/25/2025
China
Gadget
Black
$1,272.56
$4,346.26
4%
143
11/25/2025
11/25/2025
China
Widget
Black
$1,246.05
$165.02
3%
144
12/25/2025
12/25/2025
UK
Gadget
White
($4,561.43)
$2,166.34
3%
145
1/25/2025
1/25/2025
France
Widget
Black
($969.74)
$2,374.75
23%
146
2/25/2025
2/25/2025
Canada
Widget
Green
($378.87)
$1,599.26
22%
147
3/25/2025
3/25/2025
Canada
Gadget
Red
$3,949.66
$4,730.61
2%
148
4/25/2025
4/25/2025
Italy
Gadget
Red
($2,536.33)
$4,826.72
17%
149
5/25/2025
5/25/2025
UK
Widget
Black
($1,626.41)
$1,612.16
8%
150
6/25/2025
6/25/2025
Canada
Gadget
Black
($1.54)
$2,073.22
20%
151
7/25/2025
7/25/2025
Korea
Gadget
Red
($1,990.24)
$1,535.42
16%
152
8/25/2025
8/25/2025
Canada
Widget
Green
($4,949.81)
$3,054.82
15%
153
9/25/2025
9/25/2025
Japan
Widget
Red
$3,971.69
$4,752.95
19%
154
10/25/2025
10/25/2025
German
Widget
Green
$3,693.46
$3,002.44
3%
155
11/25/2025
11/25/2025
US
Widget
Black
$682.85
$3,670.20
6%
156
12/25/2025
12/25/2025
Canada
Gadget
Green
$541.64
$4,106.13
2%
157
1/25/2025
1/25/2025
Japan
Widget
Green
$704.12
$3,230.52
18%
158
2/25/2025
2/25/2025
Canada
Gadget
Green
($431.61)
$4,051.59
23%
159
3/25/2025
3/25/2025
Italy
Widget
Black
($4,238.47)
$1,173.27
24%
160
4/25/2025
4/25/2025
Italy
Gadget
Black
$2,024.69
$2,934.59
2%
161
5/25/2025
5/25/2025
Italy
Widget
Black
($1,597.95)
$3,565.84
18%
162
6/25/2025
6/25/2025
US
Widget
Red
$428.68
$1,126.89
2%
163
7/25/2025
7/25/2025
China
Gadget
Green
($2,544.80)
$554.85
13%
164
8/25/2025
8/25/2025
Japan
Gadget
Red
$3,532.31
$1,316.27
0%
165
9/25/2025
9/25/2025
UK
Gadget
Red
$3,767.66
$4,994.15
4%
166
10/25/2025
10/25/2025
Korea
Widget
Black
$1,752.80
$2,912.23
16%
167
11/25/2025
11/25/2025
Italy
Gadget
Red
$4,071.89
$1,023.70
0%
168
12/25/2025
12/25/2025
Japan
Widget
Red
($421.38)
$1,054.53
0%
169
1/25/2025
1/25/2025
Italy
Gadget
Red
$2,678.02
$3,140.02
21%
170
2/25/2025
2/25/2025
Korea
Gadget
Black
($2,535.97)
$4,099.50
8%
171
3/25/2025
3/25/2025
Italy
Widget
Red
($2,320.86)
$490.51
16%
172
4/25/2025
4/25/2025
German
Gadget
Green
($1,911.10)
$503.50
8%
173
5/25/2025
5/25/2025
US
Widget
Black
($4,523.44)
$4,773.88
5%
174
6/25/2025
6/25/2025
Italy
Gadget
Red
($3,295.21)
$2,508.47
6%
175
7/25/2025
7/25/2025
Japan
Gadget
Red
$3,600.56
$4,555.19
23%
176
8/25/2025
8/25/2025
Japan
Gadget
Black
($4,051.45)
$4,418.38
13%
177
9/25/2025
9/25/2025
Korea
Gadget
White
$70.81
$3,952.43
11%
178
10/25/2025
10/25/2025
France
Widget
Red
($24.83)
$4,260.74
12%
179
11/25/2025
11/25/2025
France
Gadget
Red
($1,479.86)
$2,569.42
2%
180
12/25/2025
12/25/2025
China
Widget
Green
($3,516.53)
$3,752.75
22%
181
1/25/2025
1/25/2025
Korea
Gadget
Red
($4,214.68)
$3,478.02
11%
182
2/25/2025
2/25/2025
China
Widget
White
$1,143.87
$2,669.51
20%
183
3/25/2025
3/25/2025
Korea
Gadget
White
$1,937.71
$705.53
0%
184
4/25/2025
4/25/2025
Italy
Gadget
Green
($4,874.61)
$137.75
21%
185
5/25/2025
5/25/2025
US
Widget
Green
$1,895.78
$2,639.61
1%
186
6/25/2025
6/25/2025
German
Gadget
Red
($2,180.68)
$3,744.52
16%
187
7/25/2025
7/25/2025
Canada
Gadget
Red
$3,799.82
$4,528.82
4%
188
8/25/2025
8/25/2025
US
Widget
Green
($4,372.90)
$442.04
18%
189
9/25/2025
9/25/2025
US
Gadget
White
($2,411.49)
$2,600.29
22%
190
10/25/2025
10/25/2025
Canada
Widget
Green
$4,197.42
$4,691.80
8%
191
11/25/2025
11/25/2025
UK
Widget
Black
($146.51)
$1,966.29
3%
192
12/25/2025
12/25/2025
Italy
Widget
White
$1.20
$3,067.43
9%
193
1/25/2025
1/25/2025
Italy
Gadget
Red
($1,216.76)
$1,664.02
7%
194
2/25/2025
2/25/2025
Korea
Gadget
White
($2,658.47)
$2,209.67
11%
195
3/25/2025
3/25/2025
US
Widget
Red
$3,202.26
$3,516.76
4%
196
4/25/2025
4/25/2025
Korea
Widget
Green
$3,069.20
$1,909.23
7%
197
5/25/2025
5/25/2025
Korea
Gadget
Black
($4,930.98)
$2,526.57
21%
198
6/25/2025
6/25/2025
Korea
Gadget
Red
$4,086.81
$3,898.94
14%
199
7/25/2025
7/25/2025
UK
Gadget
White
$4,267.49
$3,297.58
6%
200
8/25/2025
8/25/2025
China
Widget
Green
($2,309.86)
$3,664.09
20%
ID
Start
End
Country
Product
Color
Amount
Amount2
Discount
Active
0
loading...
The total item count is now 200.
Settings
Description
The FlexGridSearch control provides a simple UI for performing full-text searches on FlexGrid controls.
It filters the data and highlights matches on the grid as you type.
The same FlexGrid control can be filtered by the FlexGridSearch control and filter feature at the same time.
You can also specify the CaseSensitiveSearch property of FlexGrid to determine whether the search is case-sensitive or not.
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 | using MvcExplorer.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace MvcExplorer.Controllers { public partial class FlexGridController : Controller { private readonly ControlOptions _gridSearchOptions = new ControlOptions { Options = new OptionDictionary { { "Delay" , new OptionItem{Values = new List< string > { "100" , "300" , "500" , "800" , "1000" }, CurrentValue = "500" }}, { "Css Match" , new OptionItem {Values = new List< string > { "Default" , "color-match" , "underline-match" , "style-match" }, CurrentValue = "Default" }}, { "Case Sensitive Search" , new OptionItem {Values = new List< string > { "True" , "False" }, CurrentValue = "True" }} } }; public ActionResult Searching(FormCollection data) { _gridSearchOptions.LoadPostData(data); ViewBag.DemoOptions = _gridSearchOptions; return View(Sale.GetData(200)); } } } |
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 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | @model IEnumerable< Sale > @ { ControlOptions optionsModel = ViewBag.DemoOptions; ViewBag.DemoSettings = true ; var cssMatch = optionsModel.Options[ "Css Match" ].CurrentValue; if (cssMatch == "Default" ) { cssMatch = "wj-state-match" ; } } < p id = "theSearch" style = "width:300px;" ></ p > @ (Html.C1().FlexGrid< Sale >() .AutoGenerateColumns( false ) .Id( "theFlexGrid" ) .CssClass( "grid" ) .IsReadOnly( true ) .Bind(Model) .Columns(bl => { bl.Add(cb => cb.Binding( "ID" )); bl.Add(cb => cb.Binding( "Start" )); bl.Add(cb => cb.Binding( "End" )); bl.Add(cb => cb.Binding( "Country" )); bl.Add(cb => cb.Binding( "Product" )); bl.Add(cb => cb.Binding( "Color" )); bl.Add(cb => cb.Binding( "Amount" ).Format( "c" )); bl.Add(cb => cb.Binding( "Amount2" ).Format( "c" )); bl.Add(cb => cb.Binding( "Discount" ).Format( "p0" )); bl.Add(cb => cb.Binding( "Active" )); }) .Filterable(f => f.DefaultFilterType(FilterType.Both)) .AutoSearch( true ) .CaseSensitiveSearch(Convert.ToBoolean(optionsModel.Options[ "Case Sensitive Search" ].CurrentValue)) ) @ (Html.C1().FlexGridSearch( "#theSearch" ) .Grid( "theFlexGrid" ) .Delay(Convert.ToInt32(optionsModel.Options[ "Delay" ].CurrentValue)) .CssMatch(cssMatch) .Placeholder( string .Format( "{0}" , Html.Raw(Resources.FlexGrid.EnterTextSearch_Text0))) ) < p > @Html .Raw(Resources.FlexGrid.Searching_Text2) < b >< span id = "searchCount" ></ span ></ b >. </ p > < style type = "text/css" > .color-match { color: orangered !important; background-color: #C3EFA2 !important; font-weight: bold; } .underline-match { color: black !important; background-color: yellow !important; font-weight: bold; text-decoration: underline !important; } .style-match { color: darkgreen !important; background-color: lightyellow !important; font-style: oblique; text-shadow: 2px 2px 5px green; } </ style > @section Scripts{ <script> function saveValue(key, value) { if (sessionStorage) { sessionStorage.setItem(key, value); } else { $.cookies. set (key, value); } } function getValue(key) { if (sessionStorage) { return sessionStorage.getItem(key); } else { return $.cookies. get (key); } } function updateSearchCount(theGrid) { let cnt = theGrid.collectionView.items.length; document.getElementById( 'searchCount' ).textContent = cnt; } window.onbeforeunload = function () { let theSearch = wijmo.Control.getControl( "#theSearch" ); saveValue( "SearchValue" , theSearch.text || "" ); } c1.documentReady( function () { let theSearch = wijmo.Control.getControl( "#theSearch" ); theSearch.text = getValue( "SearchValue" ) || theSearch.text || "" ; let theGrid = wijmo.Control.getControl( "#theFlexGrid" ); theGrid.collectionView.collectionChanged.addHandler( function () { updateSearchCount(theGrid); }); }); </script> } @section Settings{ @Html .Partial( "_OptionsMenu" , optionsModel) } @section Summary{ < p > @Html .Raw(Resources.FlexGrid.Searching_Text0)</ p > } @section Description{ < p > @Html .Raw(Resources.FlexGrid.Searching_Text1)</ p > < p > @Html .Raw(Resources.FlexGrid.Searching_Text3)</ p > } |