Skip to content

Commit d8cc240

Browse files
committed
update version
1 parent baa1368 commit d8cc240

File tree

3 files changed

+25
-28
lines changed

3 files changed

+25
-28
lines changed

CS/BlazorApp_WordDocumentAPI/BlazorApp_WordDocumentAPI.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Web">
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="DevExpress.Blazor" Version="21.2.6" />
11-
<PackageReference Include="DevExpress.Document.Processor" Version="21.2.6" />
12-
<PackageReference Include="MailKit" Version="3.1.1" />
10+
<PackageReference Include="DevExpress.Blazor" Version="24.2.*" />
11+
<PackageReference Include="DevExpress.Document.Processor" Version="24.2.*" />
12+
<PackageReference Include="MailKit" Version="4.7.1.1" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

CS/BlazorApp_WordDocumentAPI/Pages/Index.razor

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,26 @@
3838
</DxFormLayoutItem>
3939
</DxFormLayout>
4040
<div class="col">
41-
<DxDataGrid Data="@dataSource.RecipientList"
42-
SelectionMode="DataGridSelectionMode.None"
43-
CssClass="mt-3"
44-
ShowPager="false">
45-
<DxDataGridColumn Field="@nameof(Recipient.ContactName)"
46-
Caption="Recipient" />
47-
<DxDataGridColumn Field="@nameof(Recipient.Email)"
48-
Caption="Email" />
49-
<DxDataGridColumn Caption="Attachment"
50-
Width="150px">
51-
<DisplayTemplate>
52-
@{
53-
var recipient = context as Recipient;
54-
@if (recipient != null) {
55-
<DxButton Text="Download"
56-
CssClass="btn-block"
57-
Click="@((MouseEventArgs args) => DownloadPdf(recipient))"/>
41+
<DxGrid Data="@dataSource.RecipientList"
42+
CssClass="mt-3" PagerVisible="false">
43+
<Columns>
44+
<DxGridDataColumn FieldName="@nameof(Recipient.ContactName)" Caption="Recipient" />
45+
<DxGridDataColumn FieldName="@nameof(Recipient.Email)" Caption="Email" />
46+
<DxGridDataColumn Caption="Attachment" Width="150px">
47+
<CellDisplayTemplate>
48+
@{
49+
var recipient = context.DataItem as Recipient;
50+
@if (recipient != null)
51+
{
52+
<DxButton Text="Download"
53+
CssClass="btn-block"
54+
Click="@((MouseEventArgs args) => DownloadPdf(recipient))" />
55+
}
5856
}
59-
}
60-
</DisplayTemplate>
61-
</DxDataGridColumn>
62-
</DxDataGrid>
57+
</CellDisplayTemplate>
58+
</DxGridDataColumn>
59+
</Columns>
60+
</DxGrid>
6361
</div>
6462
</div>
6563
</div>

CS/BlazorApp_WordDocumentAPI/Pages/_Layout.cshtml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
1212
<link href="css/site.css" rel="stylesheet" />
1313
<link href="BlazorApp_WordDocumentAPI.styles.css" rel="stylesheet" />
14-
<link rel="stylesheet" href="css/blazing-berry/bootstrap.min.css" />
15-
<link href="_content/DevExpress.Blazor/dx-blazor.css" rel="stylesheet" />
14+
<link href="_content/DevExpress.Blazor.Themes/blazing-berry.bs4.min.css" rel="stylesheet" />
1615
<component type="typeof(HeadOutlet)" render-mode="ServerPrerendered" />
1716
</head>
1817
<body>

0 commit comments

Comments
 (0)