* Changed ScheduleOrdersGrid with enabling Persistence
* Added div to help with visibility on mobiles
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
@using Syncfusion.Blazor.Grids
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
<SfGrid @ref="_grid"
|
||||
<div class="container-fluid h-100">
|
||||
<SfGrid @ref="_grid"
|
||||
TValue="ScheduleOrderDto"
|
||||
AllowFiltering="true"
|
||||
AllowPaging="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"/>
|
||||
@@ -50,10 +56,11 @@
|
||||
}
|
||||
</DetailTemplate>
|
||||
</GridTemplates>
|
||||
<GridEvents TValue="ScheduleOrderDto" OnRecordDoubleClick="OnRowDoubleClick" />
|
||||
<GridFilterSettings Type="FilterType.Excel" />
|
||||
<GridPageSettings PageSize="PageSize" />
|
||||
</SfGrid>
|
||||
<GridEvents TValue="ScheduleOrderDto" OnRecordDoubleClick="OnRowDoubleClick"/>
|
||||
<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}");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user