【发布时间】:2022-06-10 19:04:03
【问题描述】:
我对 Blazor 中的 Syncfusion 组件有疑问:SgGrid。我目前正在使用 Syncfusion v 19.3.0.54。
问题是:当我启用 EnableAdaptiveUI 时,我的工具栏消失了。所以我不想在响应式和我的按钮之间进行选择...
技术选择不是我的,但我必须处理它。 我在代码中添加了 ** ** 以向您展示问题所在。 RowRendering 行不会改变任何东西,但如果没有 EnableAdaptiveUI,它就无法工作。
另外,我是一名前端 Js/React 开发人员,而且,是的,它在 c# 中,所以和我说话就像我是 5 岁一样。
谢谢
<SfGrid ID="DataGrid" @ref="DataGrid"
DataSource="@listeSyndics"
** Toolbar="@(new List<object>() { "ExcelExport", "PdfExport", new ItemModel() { Text = "Enlever les filtres", TooltipText = "Enlever les filtres", PrefixIcon = "e-remove_filters", Id = "RemoveFilters", Align = (Syncfusion.Blazor.Navigations.ItemAlign.Right) }, "Search" })" **
AllowExcelExport="true"
AllowPdfExport="true"
AllowFiltering="true"
AllowPaging="true"
AllowSorting="true"
EnableHover="true"
AllowSelection="false"
RowRenderingMode="@(Width >= MinWidthSize ? RowDirection.Horizontal: RowDirection.Vertical)"
**EnableAdaptiveUI="true"**
>
【问题讨论】:
标签: c# blazor syncfusion syncfusion-blazor-sfgrid