@@ -232,54 +232,62 @@ The grid offers elastic design capabilities
232
232
font-size: 10px;
233
233
}
234
234
235
- div.smallerFont .k-dropdown.k-header.k-dropdown-operator {
236
- width: calc(8px + 2em) !important;
237
- }
235
+ div.smallerFont .k-dropdown.k-header.k-dropdown-operator {
236
+ width: calc(8px + 2em) !important;
237
+ }
238
+
239
+ /* One example for altering content inside the cells - the inputs in InCell editing mode here
240
+ You can create similar rules as needed by inspecting the rendered HTML. This blog can help you do that
241
+ https://www.telerik.com/blogs/improve-your-debugging-skills-with-chrome-devtools
242
+ */
243
+ div.smallerFont .k-grid-edit-cell input{
244
+ font-size: 10px;
245
+ }
238
246
</style>
239
247
240
248
<TelerikGrid Data="@MyData" Class="smallerFont"
241
- Pageable="true" FilterMode="Telerik.Blazor.GridFilterMode.FilterRow"
242
- Sortable="true" Height="200px">
243
- <GridColumns>
244
- <GridColumn Field="@(nameof(SampleData.ID))">
245
- </GridColumn>
246
- <GridColumn Field="@(nameof(SampleData.Name))" Title="Employee Name">
247
- </GridColumn>
248
- <GridColumn Field="@(nameof(SampleData.HireDate))" Title="Hire Date">
249
- </GridColumn>
250
- </GridColumns>
249
+ Pageable="true" FilterMode="Telerik.Blazor.GridFilterMode.FilterRow"
250
+ Sortable="true" Height="200px">
251
+ <GridColumns>
252
+ <GridColumn Field="@(nameof(SampleData.ID))">
253
+ </GridColumn>
254
+ <GridColumn Field="@(nameof(SampleData.Name))" Title="Employee Name">
255
+ </GridColumn>
256
+ <GridColumn Field="@(nameof(SampleData.HireDate))" Title="Hire Date">
257
+ </GridColumn>
258
+ </GridColumns>
251
259
</TelerikGrid>
252
260
253
261
original:
254
262
255
263
<TelerikGrid Data="@MyData"
256
- Pageable="true" FilterMode="Telerik.Blazor.GridFilterMode.FilterRow"
257
- Sortable="true" Height="200px">
258
- <GridColumns>
259
- <GridColumn Field="@(nameof(SampleData.ID))">
260
- </GridColumn>
261
- <GridColumn Field="@(nameof(SampleData.Name))" Title="Employee Name">
262
- </GridColumn>
263
- <GridColumn Field="@(nameof(SampleData.HireDate))" Title="Hire Date">
264
- </GridColumn>
265
- </GridColumns>
264
+ Pageable="true" FilterMode="Telerik.Blazor.GridFilterMode.FilterRow"
265
+ Sortable="true" Height="200px">
266
+ <GridColumns>
267
+ <GridColumn Field="@(nameof(SampleData.ID))">
268
+ </GridColumn>
269
+ <GridColumn Field="@(nameof(SampleData.Name))" Title="Employee Name">
270
+ </GridColumn>
271
+ <GridColumn Field="@(nameof(SampleData.HireDate))" Title="Hire Date">
272
+ </GridColumn>
273
+ </GridColumns>
266
274
</TelerikGrid>
267
275
268
276
@code {
269
- //in a real case, keep the models in dedicated locations, this is just an easy to copy and see example
270
- public class SampleData
271
- {
272
- public int ID { get; set; }
273
- public string Name { get; set; }
274
- public DateTime HireDate { get; set; }
275
- }
277
+ //in a real case, keep the models in dedicated locations, this is just an easy to copy and see example
278
+ public class SampleData
279
+ {
280
+ public int ID { get; set; }
281
+ public string Name { get; set; }
282
+ public DateTime HireDate { get; set; }
283
+ }
276
284
277
- public IEnumerable<SampleData> MyData = Enumerable.Range(1, 50).Select(x => new SampleData
278
- {
279
- ID = x,
280
- Name = "name " + x,
281
- HireDate = DateTime.Now.AddDays(-x)
282
- });
285
+ public IEnumerable<SampleData> MyData = Enumerable.Range(1, 50).Select(x => new SampleData
286
+ {
287
+ ID = x,
288
+ Name = "name " + x,
289
+ HireDate = DateTime.Now.AddDays(-x)
290
+ });
283
291
}
284
292
````
285
293
0 commit comments