Progress Telerik Ultimate Collection 2025 Q2下载地址 https://soft51.cc/software/175792580241152290
Progress Telerik是专为.NET开发者提供的UI控件套件,自2002年成立以来一直致力于提升开发效率。
核心价值:
| 技术栈 | 推荐产品 | 适用场景 | |--------|----------|----------| | ASP.NET Web Forms | UI for ASP.NET AJAX | 维护现有系统 | | ASP.NET Core | UI for ASP.NET Core | 新Web项目 | | Blazor | UI for Blazor | 全栈C#开发 | | WPF | UI for WPF | Windows桌面应用 | | WinForms | UI for WinForms | 快速桌面开发 |
创建 nuget.config
文件:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="Telerik" value="https://nuget.telerik.com/v3/index.json" />
</packageSources>
<packageSourceCredentials>
<Telerik>
<add key="Username" value="your-email@domain.com" />
<add key="ClearTextPassword" value="your-telerik-nuget-key" />
</Telerik>
</packageSourceCredentials>
</configuration>
命令行配置:
dotnet nuget add source https://nuget.telerik.com/v3/index.json \
--name "Telerik" \
--username "your-email@domain.com" \
--password "your-telerik-nuget-key"
ASP.NET Core:
dotnet add package Telerik.UI.for.AspNet.Core
Blazor:
dotnet add package Telerik.UI.for.Blazor
WPF:
dotnet add package Telerik.Windows.Controls.for.Wpf
<ItemGroup>
<Reference Include="Telerik.Windows.Controls">
<HintPath>C:\Telerik\Binaries\Telerik.Windows.Controls.dll</HintPath>
</Reference>
</ItemGroup>
ASP.NET Core:
// Program.cs
builder.Services.Configure<KendoLicenseOptions>(options =>
{
options.LicenseKey = "your-license-key";
});
WPF:
// App.xaml.cs
protected override void OnStartup(StartupEventArgs e)
{
Telerik.Windows.Controls.RadLicenseProvider.LicenseKey =
"your-license-key";
base.OnStartup(e);
}
dotnet new mvc -n MyTelerikApp
cd MyTelerikApp
dotnet add package Telerik.UI.for.AspNet.Core
Program.cs:
using Kendo.Mvc.Extensions;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllersWithViews();
builder.Services.AddKendo();
var app = builder.Build();
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseRouting();
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
app.Run();
Controllers/HomeController.cs:
public class HomeController : Controller
{
public IActionResult Index() => View();
public JsonResult GetData()
{
var products = new[]
{
new { ID = 1, Name = "笔记本", Price = 5999 },
new { ID = 2, Name = "鼠标", Price = 199 },
new { ID = 3, Name = "键盘", Price = 699 }
};
return Json(products);
}
}
Views/Shared/_Layout.cshtml:
<!DOCTYPE html>
<html>
<head>
<title>Telerik示例</title>
@(Html.Kendo().StyleSheet("kendo.default.min.css"))
</head>
<body>
@RenderBody()
<script src="~/lib/jquery/jquery.min.js"></script>
@(Html.Kendo().Script("kendo.all.min.js"))
</body>
</html>
Views/Home/Index.cshtml:
<h2>Telerik控件演示</h2>
<h3>日期选择器</h3>
@(Html.Kendo().DatePicker()
.Name("datePicker")
.Value(DateTime.Today)
)
<h3>数据网格</h3>
@(Html.Kendo().Grid<object>()
.Name("grid")
.Columns(columns =>
{
columns.Bound("ID").Width(80);
columns.Bound("Name").Title("产品名称");
columns.Bound("Price").Title("价格").Format("{0:C}");
})
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("GetData", "Home"))
)
.Height(300)
)
dotnet run
访问 https://localhost:5001
查看效果,验证:
本教程介绍了Telerik产品家族和环境搭建:
掌握这些基础知识后,您就可以开始使用Telerik控件进行高效的应用程序开发了。
Progress Telerik Ultimate Collection 2025 Q2下载地址 https://soft51.cc/software/175792580241152290