Skip to content

Commit 645f0e2

Browse files
committed
Sync with Kendo UI Professional
1 parent 7fc6487 commit 645f0e2

14 files changed

+246
-5
lines changed

docs-aspnet/_config-mvc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ knowledge-base/isolate-sample-with-an-in-memory-database.md,
6868
knowledge-base/upload-resize-image-before-upload.md,
6969
knowledge-base/validator-basic-form-validation.md,
7070
knowledge-base/vs-online-continuous-integration-login-problem.md,
71+
knowledge-base/grid-azure-empty-cells.md,
7172
knowledge-base/grid-toggle-editable-mode.md,
7273
knowledge-base/grid-export-parent-and-all-detail-grids-to-excel.md,
7374
html-helpers/data-management/grid/binding/razor-page.md,

docs-aspnet/docs-builder-mvc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ excluded-files:
168168
- "**/html-helpers/data-management/listview/binding/razor-page.md"
169169
- "**/html-helpers/media/mediaplayer/razor-page.md"
170170
- "**/html-helpers/overview-taghelpers.md"
171+
- "**/knowledge-base/grid-azure-empty-cells.md"
171172
- "**/html-helpers/chartwizard/binding/razor-page.md"
172173

173174
meta:

docs-aspnet/html-helpers/charts/accessibility/key-nav.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,48 @@ When the legend area is focused, the following keyboard commands are available:
4242
| `Tab` | Moves the focus to the next focusable element on the page. If the legend position is `top` or `left`, moves focus to the chart area.
4343
| `Shift` & `Tab` | Moves the focus to the chart area. If the legend position is `top` or `left`, moves focus to the previous focusable element on the page.
4444

45+
## Focus Highlight
46+
47+
Starting with version 2025 Q2, the Chart component provides the `FocusHighlight` setting, which allows you to customize the border appearance of the highlighted element during keyboard navigation.
48+
49+
The `FocusHighlight` option can be applied to both Chart series and legend elements:
50+
51+
```HtmlHelper
52+
.Legend(legend => legend
53+
.Position(ChartLegendPosition.Bottom)
54+
.FocusHighlight(f=>f.Border(b=>b
55+
.Width(3)
56+
.Color("brown")
57+
.DashType(ChartDashType.Solid)
58+
.Opacity(0.7)
59+
))
60+
)
61+
.SeriesDefaults(s=>s.Donut().FocusHighlight(f=>
62+
f.Border(b=>b
63+
.Width(4)
64+
.Color("green")
65+
.DashType(ChartDashType.LongDash)
66+
.Opacity(0.7)
67+
)
68+
))
69+
```
70+
{% if site.core %}
71+
```TagHelper
72+
@addTagHelper *, Kendo.Mvc
73+
74+
<chart-legend position="ChartLegendPosition.Bottom">
75+
<focus-highlight>
76+
<border width="3" color="brown" dash-type="DashType.Solid" opacity="0.7" />
77+
</focus-highlight>
78+
</chart-legend>
79+
<series-defaults type="ChartSeriesType.Donut">
80+
<focus-highlight>
81+
<border width="4" color="green" dash-type="DashType.LongDash" opacity="0.7" />
82+
</focus-highlight>
83+
</series-defaults>
84+
```
85+
{% endif %}
86+
4587
## See Also
4688

4789
* [Keyboard Navigation by the Chart (Demo)](https://demos.telerik.com/{{ site.platform }}/charts/keyboard_navigation)

docs-aspnet/html-helpers/editors/checkboxgroup/binding.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ You can implement model binding both with [local](#items-method) and [remote dat
180180
@(Html.Kendo().CheckBoxGroupFor(model => model.CheckBoxGroupValue)
181181
.HtmlAttributes(new { style = "height: auto;" })
182182
.Layout(CheckBoxGroupLayout.Vertical)
183-
.BindTo((List<IInputGroupItem>)ViewData["CheckBoxGroupItems"])
183+
.BindTo((List<CheckBoxGroupModel>)ViewData["CheckBoxGroupItems"])
184184
)
185185
```
186186
{% if site.core %}
@@ -189,7 +189,7 @@ You can implement model binding both with [local](#items-method) and [remote dat
189189
190190
<kendo-checkboxgroup for="CheckBoxGroupValue"
191191
value="Model.CheckBoxGroupValue"
192-
bind-to='(List<IInputGroupItem>)ViewData["CheckBoxGroupItems"]'>
192+
bind-to='(List<CheckBoxGroupModel>)ViewData["CheckBoxGroupItems"]'>
193193
</kendo-checkboxgroup>
194194
```
195195
{% endif %}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
title: Fixing Bound(null) in Telerik UI for ASP.NET Core Grid with .NET 9 on Azure App Services
3+
description: This article provides a solution for issues related to empty cells when using Bound(null) in Grid columns upon deploying an ASP.NET Core MVC application to Azure App Services with .NET 9.
4+
type: troubleshooting
5+
page_title: Resolving Grid Column Display Issues in .NET 9 Azure App Services Deployments
6+
slug: grid-azure-empty-cells
7+
tags: kendo-ui, grid, asp.net-core, asp.net-mvc, azure-app-services, .net9, deployment, bound-null
8+
res_type: kb
9+
ticketid: 1679003
10+
---
11+
12+
## Environment
13+
<table>
14+
<tbody>
15+
<tr>
16+
<td>Product</td>
17+
<td>Progress® Telerik UI® Grid for ASP.NET Core</td>
18+
</tr>
19+
</tbody>
20+
</table>
21+
22+
## Description
23+
When deploying an ASP.NET Core MVC application using Telerik UI for ASP.NET Core Grid to Azure App Services after upgrading to .NET 9, a column bound with `Bound(null)` fails to render, showing an empty column instead. This issue does not occur when running the application locally or when using .NET 8.
24+
25+
The Grid has a column that binds to `null`, as per the example below:
26+
```Razor
27+
columns.Bound(null).ClientTemplate("Test").Title("Test");
28+
```
29+
30+
The column cells are empty when the application is deployed on an Azure environment that uses .NET 9:
31+
![Empty Cells](images/grid-azure-empty-cells-1.png)
32+
33+
## Cause
34+
35+
The issue itself probably stems from the <a href="https://github.com/dotnet/aspnetcore/issues?q=milestone%3A9.0.2%20is%3Aclosed%20label%3Aservicing-approved%20" target="_blank">breaking changes introduced with .NET 9</a>. More specifically, where fields are nullable by default.
36+
37+
Namely, the following pull request in the **aspnetcore** repository:
38+
https://github.com/dotnet/aspnetcore/pull/59533
39+
40+
The Grid works locally but not in an Azure environment because the version of .NET 9 Azure is older and still has the bug. Your local machine is probably using the newer .NET SDK version 9.0.200.
41+
42+
## Solution
43+
44+
The `Bound(null)` syntax is not expected by default. Apparently, .NET 8 somehow let it slide until now. For more information on how to bind a Grid column to `null`, check out the following discussions:
45+
- https://www.telerik.com/forums/how-do-i-bound-null-object-value
46+
- https://stackoverflow.com/questions/74200047/support-null-columns-on-grid
47+
48+
In some scenarios, you would want to have a non-defined field like `Bound(null)`. Use any of the following approaches to resolve the issue.
49+
50+
1. Utilize the `Template()` option to display the desired value:
51+
52+
```Razor
53+
columns.Template("Test2").Title("Test");
54+
```
55+
56+
As a result, the **Test2** column shows the specified value:
57+
![Proper Cells](images/grid-azure-empty-cells-2.png)
58+
59+
2. Ensure that your local development environment and Azure deployment environment use the same version of the .NET 9 SDK/ASP.NET runtime. If they differ, consider deploying your application as a self-contained deployment (SCD). This approach packages the .NET runtime with your application, ensuring the same runtime version is used both locally and in Azure.
60+
![Both Columns](images/grid-azure-empty-cells-3.png)
61+
62+
By following any of these approaches, the Grid columns should be displayed as expected when deploying the ASP.NET Core MVC application to Azure App Services with .NET 9.
63+
![Both Columns](images/grid-azure-empty-cells-4.png)
64+
65+
66+
## See Also
67+
68+
* [Client-Side API Reference of the Grid for {{ site.framework }}](https://docs.telerik.com/kendo-ui/api/javascript/ui/grid)
69+
* [Server-Side API Reference of the Grid for {{ site.framework }}](https://docs.telerik.com/{{ site.platform }}/api/grid)
70+
{% if site.core %}
71+
* [Server-Side TagHelper API Reference of the Grid for {{ site.framework }}](https://docs.telerik.com/{{ site.platform }}/api/taghelpers/grid)
72+
{% endif %}
73+
* [Telerik UI for {{ site.framework }} Breaking Changes]({%slug breakingchanges_2023%})
74+
* [Telerik UI for {{ site.framework }} Knowledge Base](https://docs.telerik.com/{{ site.platform }}/knowledge-base)
98.1 KB
Loading
102 KB
Loading
16.1 KB
Loading
96.7 KB
Loading
127 KB
Loading

0 commit comments

Comments
 (0)