syncfusion 相关问题

Syncfusion,Inc。成立于2001年,为Microsoft .NET平台提供广泛的企业级软件组件和工具。 Syncfusion还支持各种平台,如:Angular,jQuery,Xamrin等。更多信息请访问:https://www.syncfusion.com/

更新到 .NET 5 后,Visual Studio 2019 设计器中的 Syncfusion RibbonControlAdv 缺少智能标记

以前,我可以单击此箭头来编辑 RibbonControlAdv 的属性: 但是,将我的项目迁移到 .NET 5 后,我再也看不到箭头了: 不过我可以看到...

回答 2 投票 0

如何链接/关联 Syncfusion-DockingManager 的两个子级?

我使用 Syncfusion-DockingManager 将 UserControl 显示为 ContentControl 的内容。可以打开属性 UserControl(也作为 ContentControl 的内容),它显示与...相关的数据。

回答 1 投票 0

为什么发布时没有复制此特定文件?

从 VS 2022 发布我的 azure 函数,我的 .csproj 中有一堆这样的函数: ... 永远 从 VS 2022 发布我的 azure 函数,我的 .csproj 中有一堆这样的函数: ... <None Update="QtBinariesWindows\Qt5WebChannel.dll"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </None> <None Update="QtBinariesWindows\Qt5WebKit.dll"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </None> <None Update="QtBinariesWindows\Qt5WebKitWidgets.dll"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </None> <None Update="QtBinariesWindows\Qt5Widgets.dll"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </None> <None Update="QtBinariesWindows\ssleay32.dll"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </None> ... 所有这些似乎都工作正常,我可以在 bin 中的应用程序服务编辑器中看到那些: 但由于某种原因,该文件永远不会被复制: <None Update="QtBinariesWindows\Syncfusion.WebKitWrapper"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </None> 我还可以看到在 wwwroot 处创建了一些空文件夹,它们与 QtBinariesWindows 的文件夹结构相匹配,但这些文件夹确实包含 WebKitWrapper 文件: 我尝试简单地将文件从 wwwroot 复制到 bin,但我不断收到这些错误: 报告的问题是由于 Qtbinaries 文件未正确复制而发生的。我们也遇到了类似的问题,并且与 Azure SDK 的问题有关。 请尝试使用最新版本进行转换,并按照下面链接的 UG 文档中提到的所有步骤进行操作。具体地,在步骤7中,仅包含三个文件(libeay32.dll、libssl32.dll和ssleay32.dll)。此外,您需要包含所有 QTBinaries 文件并为这些文件设置“如果较新则复制”选项。 https://help.syncfusion.com/file-formats/pdf/convert-html-to-pdf/convert-html-to-pdf-in-azure-functions-windows. 注:我为 Syncfusion 工作。

回答 1 投票 0

单击按钮即可将行数据从同步融合网格获取到另一个页面

我有一个同步融合网格,因为我在子网格中有多个列,并且还有一个带有按钮的列,单击该按钮我想转到另一个显示所有数据的页面...

回答 1 投票 0

syncfusion_flutter_pdfviewer 更改区域设置文本

我使用syncfusion_flutter_pdfviewer来显示pdf文件。 现在我想更改页面导航弹出窗口和其他默认文本中的文本。 我从 ChatGPT 得到了以下解决方案,但没有成功: ...

回答 1 投票 0

Blazor Syncfusion SfDashboardLayout - 如何在不刷新页面的情况下进行更新

<div class="d-flex flex-row-reverse align-items-center"> <div class="mb-1"> <Syncfusion.Blazor.Buttons.SfButton IconCss="e-icons e-page-column-one" @onclick="@(async () => { await UpdatePanelData(1); await dashboardLayout.RefreshAsync(); })" class="me-1"></Syncfusion.Blazor.Buttons.SfButton> <Syncfusion.Blazor.Buttons.SfButton IconCss="e-icons e-page-column-two" @onclick="@(() => UpdatePanelData(2) )" class="me-1"></Syncfusion.Blazor.Buttons.SfButton> <Syncfusion.Blazor.Buttons.SfButton IconCss="e-icons e-page-column-right" @onclick="@(() => UpdatePanelData(3))" class="me-1"></Syncfusion.Blazor.Buttons.SfButton> <Syncfusion.Blazor.Buttons.SfButton IconCss="e-icons e-page-column-left" @onclick="@(() => UpdatePanelData(4))"></Syncfusion.Blazor.Buttons.SfButton> </div> </div> 这是我的按钮,我想更新这个布局; <Syncfusion.Blazor.Layouts.SfDashboardLayout CellSpacing="new double[] { 10, 10 }" AllowDragging AllowFloating AllowResizing @ref=dashboardLayout Columns="8" CellAspectRatio="@aspectRatio"> <Syncfusion.Blazor.Layouts.DashboardLayoutEvents Changed="PanelsChanged"></Syncfusion.Blazor.Layouts.DashboardLayoutEvents> 这是我的方法: async Task UpdatePanelData(int selectedId) { using (var con = await ContextFactory.CreateDbContextAsync()) { var panels = await dashboardLayout.Serialize(); switch (selectedId) { case 1: int column1 = 2; foreach (var panel in panels) { //assignment } await con.SaveChangesAsync(); break; case 2: int row2 = 0, count2 = 1; foreach (var panel in panels) { //assignment } await con.SaveChangesAsync(); break; case 3: int row3 = 0, count3 = 1; foreach (var panel in panels) { //assignment } await con.SaveChangesAsync(); break; case 4: int row4 = 0, count4 = 1; foreach (var panel in panels) { //assignment } await con.SaveChangesAsync(); break; } StateHasChanged(); await dashboardLayout.RefreshAsync(); } } 我创建了按钮,为布局中的面板提供现成的主题。该方法有效并且数据库中的数据已更新,但我需要刷新页面才能看到这一点。如何让按钮在按下时改变外观? 根据共享的详细信息,我们怀疑您正在向 Dashboard Layout 组件添加面板。我们建议您检查一次序列化面板;之后,就不需要使用“RefreshAsync”方法了。我们已经实现了类似的场景,即使用预定义值动态更改面板。 示例浏览器:https://blazor.syncfusion.com/demos/dashboard-layout/default?theme= Fluent 此外,如果您想在单击按钮时更改按钮外观,我们建议使用“IsToggle”属性,这有助于更改单击按钮时的外观。 示例浏览器:https://blazor.syncfusion.com/demos/buttons/default-functionities?theme= Fluent 示例浏览器:https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Buttons.SfButton.html#Syncfusion_Blazor_Buttons_SfButton_IsToggle

回答 1 投票 0

Syncfusion ASP.NET Core:如何在数据绑定后获取cshtml中的值?

我在 ASP.NET Core 7.0 项目中使用 Syncfusion 组件。这是我的 cshtml 标记: 我在 ASP.NET Core 7.0 项目中使用 Syncfusion 组件。这是我的 cshtml 标记: <ejs-grid id="userstbl" allowSorting="true" allowPaging="true" toolbarClick="toolbarClick" toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update" })"> <e-grid-pagesettings pageCount="6" pageSize="50"></e-grid-pagesettings> <e-grid-editSettings allowAdding="true" allowDeleting="true" allowEditing="true" mode="Normal"></e-grid-editSettings> <e-data-manager url="/Users/FetchData" adaptor="UrlAdaptor"></e-data-manager> <e-grid-columns> <e-grid-column headerText="First Name" field="FirstName"></e-grid-column> <e-grid-column headerText="Family" field="Family"></e-grid-column> </e-grid-columns> </ejs-grid> 这是我绑定数据的后端: public IActionResult FetchData([FromBody] DataManagerRequest dm) { IEnumerable DataSource = _userRepository.GetUserList(); DataOperations operation = new DataOperations(); int count = DataSource.Cast<UserListViewModel>().Count(); if (dm.Skip != 0) { DataSource = operation.PerformSkip(DataSource, dm.Skip); //Paging } if (dm.Take != 0) { DataSource = operation.PerformTake(DataSource, dm.Take); } return dm.RequiresCounts ? Json(new { result = DataSource, count = count }) : Json(DataSource); } 如您所见,我有一个名为 count 的参数。但我不知道如何在客户端获取它的值... 根据您的查询,您希望在客户端获取从服务器返回的计数。我们无法获取客户端返回的数据源,因为这将由源处理并在内部直接设置到网格。但是,您可以使用属性“grid.pagerModule.pageSettings.totalRecordsCount”来获取客户端的总记录数。

回答 1 投票 0

添加新事件后,无法选择文本框输入

我在 Angular 应用程序中使用 Syncfusion。创建事件后,除非单击手动添加的下拉列表,否则我无法再编辑事件编辑器中的任何字段。我会添加我是你的代码...

回答 1 投票 0

如何在flutter中将docx转换为pdf文件?

我正在尝试将使用 docx_template 库制作的 docx 文件:^0.3.3 转换为 PDF,我尝试使用库来完成此操作。 Whit SyncFusion 我有这个: //获取外部存储目录 夫...

回答 3 投票 0

Blazor 中的表的免费选择过滤器组件(如 Syncfusion)

我正在寻找一个免费组件,例如 Syncfusion for Blazor 中的 Select-Filter。理想情况下,它应该用于表格而不是网格。我有一个 Blazor 服务器应用程序,并有一个从...获取数据的表

回答 1 投票 0

以编程方式创建 Asp:PostBackTrigger

我可以以编程方式创建 asp:PostBackTrigger 吗?因为它符合我的要求。附加信息。我使用syncfusion(ej1而不是ej2)网格。这里我只有div块(multigrid)。所有的元素...

回答 1 投票 0

syncfusion pdfviewercontrol 在本地工作但 tf 构建失败

我正在尝试直接从 Windows 服务打印到打印机。我们已经购买了syncfusion,所以我尝试用它来完成该任务。 我尝试按照以下步骤操作: https://支持。

回答 2 投票 0

在flutter中有什么方法可以构建这样的图表

我们正在开发一个项目来创建交易平台,我需要复制我们在颤振反应中使用的图表。 需要在 flutter 上创建这样的图表 我们使用了同步融合和爆炸...

回答 1 投票 0

Prism 将 TabView 绑定到各自的 ViewModel

我正在将旧版 Xamarin.Forms 应用程序迁移到 MAUI 项目。在 Xamarin 项目中,我们使用 Prism 7.1,现在正在迁移到最新版本。 我们遇到的问题是我们过去...

回答 1 投票 0

如何在页面刷新或导航时将渲染的 pdf 文件保留在syncfusion pdfViewer 中

我正在使用带有角度的同步融合pdfViewer控件。我希望即使我离开或刷新页面,渲染的文档也能保留在控件中。当我浏览选项卡或当我离开时 注释...

回答 1 投票 0

如何通过MAUI在Android上询问和允许存储权限的方法

我正在创建的 Android 应用程序需要访问 Android 手机公共存储位置上的某些文件。我知道我需要修改 AndroidManifes.XML 并请求许可...

回答 1 投票 0

如何使用 Razor 页面在 Blazor 中渲染部分视图

我正在尝试弄清楚如何使用 .Net 7 在 Blazor 服务器应用程序中的 Razor 页面中使用部分视图。 我有一个网格(使用同步融合)并创建了一个自定义按钮。 我正在使用

回答 1 投票 0

Syncfusion flutter pdfviewer 在滚动 pdf 时需要时间

Syncfusion flutter pdfviewer 在滚动 pdf 时需要时间。即使我已经在应用程序目录中下载了 pdf 并使用“

回答 1 投票 0

如何使用Dynamic/TValue模型创建可重用的EditForm blazor组件?

我正在尝试创建一个具有通用数据类型的可重用的 EditForm 模板,并在网格编辑设置中调用以进行数据输入和修改。 以下是我的网格编辑设置 我正在尝试创建一个具有通用数据类型的可重用的 EditForm 模板,并在网格编辑设置中调用以进行数据输入和修改。 下面是我的网格编辑设置 <SfGrid @ref="SimpleGrid" ID="@GridID" DataSource="@DataSourceList" Toolbar="@ToolbarItems" TValue="TValue"> <GridEditSettings AllowAdding="@IsEditable" AllowDeleting="@IsEditable" AllowEditing="@IsEditable" Mode="@EditMode.Dialog" Dialog="@DialogParams"> <Validator> <DataAnnotationsValidator></DataAnnotationsValidator> </Validator> <Template> <EditFormTest></EditFormTest> </Template> </GridEditSettings> </SfGrid> @code { [Parameter] public List<TValue>? DataSourceList { get; set; } } 下面是我的EditFormTest代码: @using Microsoft.AspNetCore.Components.CompilerServices @using System.ComponentModel.DataAnnotations @using LightWeigh_POS.Shared.Components @using LightWeigh_Pos.Data.Models @using Syncfusion.Blazor.Inputs <h3>Dynamic form</h3> @CreateComponent() Save @code { ImageModel employeeDetails; protected override void OnInitialized() { employeeDetails = new ImageModel(); } public RenderFragment CreateComponent() => builder => { var proList = typeof(ImageModel).GetProperties(); foreach (var prp in proList) { Type T = prp.GetType(); if (prp.GetCustomAttributes(typeof(DataTypeAttribute), false).Length != 0) { var attrList = (DataTypeAttribute)prp.GetCustomAttributes(typeof(DataTypeAttribute), false).First(); var displayLabel = (DisplayAttribute)prp.GetCustomAttributes(typeof(DisplayAttribute), false).First(); // Get the initial property value var propInfoValue = typeof(ImageModel).GetProperty(prp.Name); // Create an expression to set the ValueExpression-attribute. var constant = System.Linq.Expressions.Expression.Constant(employeeDetails, typeof(ImageModel)); var exp = System.Linq.Expressions.MemberExpression.Property(constant, prp.Name); switch (attrList.DataType) { case DataType.Text: case DataType.EmailAddress: case DataType.PhoneNumber: case DataType.MultilineText: { builder.OpenComponent(0, typeof(SfTextBox)); // Create the handler for ValueChanged. I use reflection to the value. builder.AddAttribute(3, "ValueChanged", RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<System.String>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<System.String>(this, Microsoft.AspNetCore.Components.EventCallback.Factory.CreateInferred(this, __value => propInfoValue.SetValue(employeeDetails, __value), (string)propInfoValue.GetValue(employeeDetails))))); builder.AddAttribute(4, "ValueExpression", System.Linq.Expressions.Expression.Lambda<Func<string>>(exp)); if (attrList.DataType == DataType.MultilineText) builder.AddAttribute(5, "Multiline", true); break; } case DataType.Date: builder.OpenComponent(0, typeof(Syncfusion.Blazor.Calendars.SfDatePicker<DateTime?>)); builder.AddAttribute(3, "ValueChanged", RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<DateTime?>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<DateTime?>(this, Microsoft.AspNetCore.Components.EventCallback.Factory.CreateInferred(this, __value => propInfoValue.SetValue(employeeDetails, __value), (DateTime?)propInfoValue.GetValue(employeeDetails))))); builder.AddAttribute(4, "ValueExpression", System.Linq.Expressions.Expression.Lambda<Func<DateTime?>>(exp)); break; case DataType.Duration: builder.OpenComponent(0, typeof(SfNumericTextBox<decimal?>)); builder.AddAttribute(3, "ValueChanged", RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<decimal?>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<decimal?>(this, Microsoft.AspNetCore.Components.EventCallback.Factory.CreateInferred(this, __value => propInfoValue.SetValue(employeeDetails, __value), (decimal?)propInfoValue.GetValue(employeeDetails))))); builder.AddAttribute(4, "ValueExpression", System.Linq.Expressions.Expression.Lambda<Func<decimal?>>(exp)); break; case DataType.Custom: builder.AddAttribute(3, "ValueChanged", RuntimeHelpers.TypeCheck<Microsoft.AspNetCore.Components.EventCallback<System.String>>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create<System.String>(this, Microsoft.AspNetCore.Components.EventCallback.Factory.CreateInferred(this, __value => propInfoValue.SetValue(employeeDetails, __value), (string)propInfoValue.GetValue(employeeDetails))))); builder.AddAttribute(4, "ValueExpression", System.Linq.Expressions.Expression.Lambda<Func<string>>(exp)); break; default: break; } var defaultValue = propInfoValue.GetValue(employeeDetails); builder.AddAttribute(1, "Value", defaultValue); builder.AddAttribute(6, "PlaceHolder", displayLabel.Name); builder.AddAttribute(6, "FloatLabelType", FloatLabelType.Auto); builder.CloseComponent(); } } }; public void Submit() { } } 上面的 SfGrid 是 Syncfusion 组件,它接受数据源作为参数,这允许我为所有其他页面重用 Grid。我希望对 EditForms 进行特定设计,并为已作为参数传递的任何模型重用内部数据网格编辑模板,但当我将 <EditForm Model="@employeeDetails" OnValidSubmit="@Submit"> 中的模型更改为动态或 TValue 时,我无法实现此目的。 我想要实现的目标是否可能,如果是,那么如何实现? 可重复使用的动态编辑表单,无需指定特定的数据模型。 默认情况下,Syncfusion DataGrid 使用 Blazor EditForm 进行内置编辑。如果我们在 DialogTemplate 功能中使用 BlazorEdit 表单,那么它将导致在 EditForm 中呈现 EditForm。因此,不建议在 DataGrid 的对话框模板功能中使用独立的 EditForm。

回答 1 投票 0

MAUI 如何使用SfAvatar ImageSource的base64?

我在我的 MAUI 应用程序中使用 Syncfusions SfAvatar。 从后端我得到一个 base64 的图像。 SfAvatar 具有 ImageSource 属性,我可以存储本地图像 (..path/pic.png)。 我该如何使用...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.