* Changed ScheduleOrdersGrid with enabling Persistence

* Added div to help with visibility on mobiles
This commit is contained in:
2025-02-19 14:01:39 +01:00
parent 3770d4f28d
commit 59e558b109

View File

@@ -2,6 +2,7 @@
@using Syncfusion.Blazor.Grids
@inherits LayoutComponentBase
<div class="container-fluid h-100">
<SfGrid @ref="_grid"
TValue="ScheduleOrderDto"
AllowFiltering="true"
@@ -10,6 +11,8 @@
AllowSelection="true"
DataSource="@_dataSource"
EnableAdaptiveUI="true"
EnablePersistence="true"
AllowRowClick="true"
SelectionMode="GridSelectionMode.Single"
QueryCellInfo="OnQueryCellInfo"
@@ -37,10 +40,13 @@
AllowSelection="true"
TValue="ScheduleOrderDetailDto"
DataSource="@scheduleOrderDetails"
EnablePersistence="true"
EnableAdaptiveUI="true">
<GridColumns>
<GridColumn Field=@nameof(ScheduleOrderDetailDto.Sc_productCode) HeaderText="Pozycja" Width="100"></GridColumn>
<GridColumn Field=@nameof(ScheduleOrderDetailDto.Sh_productCode) HeaderText="Pozycja Klienta"
<GridColumn Field=@nameof(ScheduleOrderDetailDto.Sc_productCode) HeaderText="Pozycja"
Width="100"></GridColumn>
<GridColumn Field=@nameof(ScheduleOrderDetailDto.Sh_productCode)
HeaderText="Pozycja Klienta"
Width="100"></GridColumn>
</GridColumns>
<GridFilterSettings Type="FilterType.Excel"/>
@@ -54,6 +60,7 @@
<GridFilterSettings Type="FilterType.Excel"/>
<GridPageSettings PageSize="PageSize"/>
</SfGrid>
</div>
@code {
[Parameter] public required IEnumerable<ScheduleOrderDto> GridData { get; set; }
@@ -84,4 +91,5 @@
int scheduleOrderId = obj.RowData.ID;
NavigationManager.NavigateTo($"/ScheduleOrder/{scheduleOrderId}");
}
}