Syncfusion,Inc。成立于2001年,为Microsoft .NET平台提供广泛的企业级软件组件和工具。 Syncfusion还支持各种平台,如:Angular,jQuery,Xamrin等。更多信息请访问:https://www.syncfusion.com/
如何在页面刷新或导航时将渲染的 pdf 文件保留在syncfusion pdfViewer 中
我正在使用带有角度的同步融合pdfViewer控件。我希望即使我离开或刷新页面,渲染的文档也能保留在控件中。当我浏览选项卡或当我离开时 注释...
我正在创建的 Android 应用程序需要访问 Android 手机公共存储位置上的某些文件。我知道我需要修改 AndroidManifes.XML 并请求许可...
我正在尝试弄清楚如何使用 .Net 7 在 Blazor 服务器应用程序中的 Razor 页面中使用部分视图。 我有一个网格(使用同步融合)并创建了一个自定义按钮。 我正在使用
Syncfusion flutter pdfviewer 在滚动 pdf 时需要时间
Syncfusion flutter pdfviewer 在滚动 pdf 时需要时间。即使我已经在应用程序目录中下载了 pdf 并使用“
如何使用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。
MAUI 如何使用SfAvatar ImageSource的base64?
我在我的 MAUI 应用程序中使用 Syncfusions SfAvatar。 从后端我得到一个 base64 的图像。 SfAvatar 具有 ImageSource 属性,我可以存储本地图像 (..path/pic.png)。 我该如何使用...
Flutter SFDataGrid 在单独的屏幕而不是警报框中显示行详细信息
导入'包:flutter/material.dart'; 导入'包:syncfusion_flutter_datagrid/datagrid.dart'; 无效主(){ 运行应用程序(材料应用程序( title: '颤振演示', 主题:ThemeData(primaryS...
我正在开发一个 Flutter 应用程序,其中涉及从互联网获取 pdf 文件,加密并将其存储在应用程序文件目录中,然后检索、解密以在应用程序中显示。 我是你...
EJS-Maps:如何沿着带有连接线的位置列表(经度、纬度)显示路线
我正在 MVC .NET Core 项目上使用 EJS Maps。 我有一个包含大约 30 个位置的列表,每个位置都有经度和纬度。 我需要在 ejs 地图上用线条显示这一系列的点
Syncfusion SfDataGrid 根据值更改单元格的前景
我正在尝试使用转换器根据 ItemsSource 中对象的 DateTime 值更改单元格的前景。 我遇到的问题是,运行应用程序时我...
Syncfusion XlsIO:尝试将文件夹中的图像列表插入到每一行中。显示相同的图像
我在 .NET 6 控制台应用程序中使用 Syncfusion XlsIO 将数据插入到工作表中,包括每行末尾的图像。我在这里关注官方文档。 没有错误...
尝试在 MUI Drawer 组件内实现反应同步融合查询构建器组件时,面临多选复选框下拉列表中的闪烁问题
我正在尝试在 MUI 抽屉内实现 React Syncfusion 查询构建器。在实现此操作时,我面临 IN 运算符的多选复选框闪烁的问题。 如果我暗示...
Syncfusion Flutter 笛卡尔图表删除灰色“边框”
我正在使用 Syncfusion、Flutter 笛卡尔图表。我正在尝试删除照片中黑色圈出的灰色线条。我已经设置了majorGridLines、minorGridLines、majorTickLines的宽度,
类 CalendarEvents 扩展 StatefulWidget { @覆盖 CalendarEventsState createState() => CalendarEventsState(); } 类 CalendarEventsState 扩展 State { 最后
我的自定义 SfDialog 有问题。首先我解释一下我想要发生什么。也就是说,在用户对网格进行更改然后单击工具栏中的“更新”后,会出现我的自定义 SfDia...
我希望能够以不同于 y 轴的方式设置工具提示中的文本格式。 y 轴不显示分。我只想在工具提示上显示美分。格式化完成...
从 'react' 导入 React, { useEffect, useState }; 从 '@syncfusion/ej2-
将 Syncfusion Scheduler 预约保存到数据库
嗨 任何人都可以指导我通过编辑器的“保存”按钮向数据库添加新约会的过程吗? 就像当我单击任何单元格并在编辑器中添加信息,然后单击“保存”时,它将...
我正在尝试使用 SfCartesianChart(版本 22.2.12)在 dotnet maui 中显示动态数量的系列。 图表中的所有数据都存在于 ViewModel 中,如下所示: 公共类 ChartPageViewM...
使用syncfusion_flutter_pdfviewer从URL文件加载PDF时出现问题
我正在使用syncfusion_flutter_pdfviewer库来加载pdf url文件并在日志中获取这些问题。 Android 和 iOS 设备中存在 PDF 问题,但图像正在加载。 获取这些错误日志: E/