File tree Expand file tree Collapse file tree 2 files changed +37
-19
lines changed
sample-applications/blazor-financial-dashboard/BlazorFinancialDashboard/Components/Pages Expand file tree Collapse file tree 2 files changed +37
-19
lines changed Original file line number Diff line number Diff line change 153
153
{
154
154
args .Columns .First (x => x .Field == nameof (Transaction .Date )).Width = " 180px" ;
155
155
args .Columns .First (x => x .Field == nameof (Transaction .Amount )).Width = " 100px" ;
156
- args .Columns .First (x => x .Field == nameof (Transaction .Category )).Width = " 120px" ;
157
- args .Columns .First (x => x .Field == nameof (Transaction .PaymentMethodId )).Width = " 100px" ;
158
- args .Columns .First (x => x .Field == nameof (Transaction .Merchant )).Width = " 140px" ;
156
+ if (IsLargeScreen )
157
+ {
158
+ args .Columns .First (x => x .Field == nameof (Transaction .Category )).Width = " 120px" ;
159
+ args .Columns .First (x => x .Field == nameof (Transaction .PaymentMethodId )).Width = " 100px" ;
160
+ }
161
+ if (IsMediumOrLargeScreen )
162
+ {
163
+ args .Columns .First (x => x .Field == nameof (Transaction .Merchant )).Width = " 140px" ;
164
+ }
159
165
args .Columns .First (x => x .Field == nameof (Transaction .Status )).Width = " 100px" ;
160
166
}
161
167
162
168
private void OnGridBeforePdfExport (GridBeforePdfExportEventArgs args )
163
169
{
164
170
args .Columns .First (x => x .Field == nameof (Transaction .Date )).Width = " 180px" ;
165
171
args .Columns .First (x => x .Field == nameof (Transaction .Amount )).Width = " 100px" ;
166
- args .Columns .First (x => x .Field == nameof (Transaction .Category )).Width = " 120px" ;
167
- args .Columns .First (x => x .Field == nameof (Transaction .PaymentMethodId )).Width = " 100px" ;
168
- args .Columns .First (x => x .Field == nameof (Transaction .Merchant )).Width = " 140px" ;
172
+ if (IsLargeScreen )
173
+ {
174
+ args .Columns .First (x => x .Field == nameof (Transaction .Category )).Width = " 120px" ;
175
+ args .Columns .First (x => x .Field == nameof (Transaction .PaymentMethodId )).Width = " 100px" ;
176
+ }
177
+ if (IsMediumOrLargeScreen )
178
+ {
179
+ args .Columns .First (x => x .Field == nameof (Transaction .Merchant )).Width = " 140px" ;
180
+ }
169
181
args .Columns .First (x => x .Field == nameof (Transaction .Status )).Width = " 100px" ;
170
182
}
171
183
Original file line number Diff line number Diff line change 198
198
{
199
199
args .Columns .First (x => x .Field == nameof (Transaction .Date )).Width = " 180px" ;
200
200
args .Columns .First (x => x .Field == nameof (Transaction .Amount )).Width = " 100px" ;
201
- if (IsLargeScreen )
202
- {
203
- args .Columns .First (x => x .Field == nameof (Transaction .Category )).Width = " 120px" ;
204
- args .Columns .First (x => x .Field == nameof (Transaction .PaymentMethodId )).Width = " 100px" ;
205
- }
206
- args .Columns .First (x => x .Field == nameof (Transaction .Merchant )).Width = " 140px" ;
201
+ if (IsLargeScreen )
202
+ {
203
+ args .Columns .First (x => x .Field == nameof (Transaction .Category )).Width = " 120px" ;
204
+ args .Columns .First (x => x .Field == nameof (Transaction .PaymentMethodId )).Width = " 100px" ;
205
+ }
206
+ if (IsMediumOrLargeScreen )
207
+ {
208
+ args .Columns .First (x => x .Field == nameof (Transaction .Merchant )).Width = " 140px" ;
209
+ }
207
210
args .Columns .First (x => x .Field == nameof (Transaction .Status )).Width = " 100px" ;
208
211
}
209
212
210
213
private void OnGridBeforePdfExport (GridBeforePdfExportEventArgs args )
211
214
{
212
215
args .Columns .First (x => x .Field == nameof (Transaction .Date )).Width = " 180px" ;
213
- args .Columns .First (x => x .Field == nameof (Transaction .Amount )).Width = " 100px" ;
214
- if (IsLargeScreen )
215
- {
216
- args .Columns .First (x => x .Field == nameof (Transaction .Category )).Width = " 120px" ;
217
- args .Columns .First (x => x .Field == nameof (Transaction .PaymentMethodId )).Width = " 100px" ;
218
- }
219
- args .Columns .First (x => x .Field == nameof (Transaction .Merchant )).Width = " 140px" ;
216
+ args .Columns .First (x => x .Field == nameof (Transaction .Amount )).Width = " 100px" ;
217
+ if (IsLargeScreen )
218
+ {
219
+ args .Columns .First (x => x .Field == nameof (Transaction .Category )).Width = " 120px" ;
220
+ args .Columns .First (x => x .Field == nameof (Transaction .PaymentMethodId )).Width = " 100px" ;
221
+ }
222
+ if (IsMediumOrLargeScreen )
223
+ {
224
+ args .Columns .First (x => x .Field == nameof (Transaction .Merchant )).Width = " 140px" ;
225
+ }
220
226
args .Columns .First (x => x .Field == nameof (Transaction .Status )).Width = " 100px" ;
221
227
}
222
228
You can’t perform that action at this time.
0 commit comments