|
<StackLayout>
<StackLayout BackgroundColor="{StaticResource PageDefaultBackgroundColor}" Padding="0" Margin="0" Spacing="0" HeightRequest="{Binding EbayOrderDashboardCountHeightRequest}">
<sfDataGrid:SfDataGrid x:Name="dataGrid1"
HeightRequest="{Binding EbayOrderDashboardCountHeightRequest}"
BackgroundColor="White"
ItemsSource="{Binding EbayOrderDashboardCountEntityCollection}"
AllowLoadMore="False"
IsBusy="True"
AutoGenerateColumns="False"
AllowPullToRefresh="False"
VerticalOverScrollMode="None"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand"
SelectionMode="Single"
ColumnSizer="Star"
HeaderRowHeight="{StaticResource ReportDataGridHeaderRowHeight}"
RowHeight="{StaticResource ReportDataGridRowHeight}">
<sfDataGrid:SfDataGrid.Columns x:TypeArguments="syncfusion:Columns">
<sfDataGrid:GridTextColumn
HeaderText="Order"
MappingName="Name"
HeaderCellTextSize="{StaticResource DataGridHeaderCellTextSize}"
CellTextSize="{StaticResource DataGridCellTextSize}"
HeaderTextAlignment="End"
TextAlignment="End"
Padding="0,0,10,0">
</sfDataGrid:GridTextColumn>
<sfDataGrid:GridTextColumn
HeaderText="Today"
MappingName="TodayCountFormat"
HeaderCellTextSize="{StaticResource DataGridHeaderCellTextSize}"
CellTextSize="{StaticResource DataGridCellTextSize}"
HeaderTextAlignment="Start"
TextAlignment="Start"
Padding="10,0,0,0">
</sfDataGrid:GridTextColumn>
<sfDataGrid:GridTextColumn
HeaderText="Yesterday"
MappingName="YesterdayCountFormat"
HeaderCellTextSize="{StaticResource DataGridHeaderCellTextSize}"
CellTextSize="{StaticResource DataGridCellTextSize}"
HeaderTextAlignment="Start"
TextAlignment="Start"
Padding="10,0,0,0">
</sfDataGrid:GridTextColumn>
<sfDataGrid:GridTextColumn
HeaderText="Anteayer"
MappingName="BeforeYesterdayCountFormat"
HeaderCellTextSize="{StaticResource DataGridHeaderCellTextSize}"
CellTextSize="{StaticResource DataGridCellTextSize}"
HeaderTextAlignment="Start"
TextAlignment="Start"
Padding="10,0,0,0">
</sfDataGrid:GridTextColumn>
<sfDataGrid:GridTextColumn
HeaderText="LastWeekToday"
MappingName="SameDayLastWeekCountFormat"
HeaderCellTextSize="{StaticResource DataGridHeaderCellTextSize}"
CellTextSize="{StaticResource DataGridCellTextSize}"
HeaderTextAlignment="Start"
TextAlignment="Start"
Padding="10,0,0,0">
</sfDataGrid:GridTextColumn>
</sfDataGrid:SfDataGrid.Columns>
</sfDataGrid:SfDataGrid>
</StackLayout>
<StackLayout BackgroundColor="{StaticResource PageDefaultBackgroundColor}" Padding="12" Margin="0" Spacing="0" HeightRequest="{Binding EbayOrderDashboardCountHeightRequest}">
<sfDataGrid:SfDataGrid x:Name="datagrid2"
HeightRequest="{Binding EbayOrderDashboardCountHeightRequest}"
BackgroundColor="White"
ItemsSource="{Binding EbayOrderDashboardCountEntityCollection}"
AllowLoadMore="False"
IsBusy="True"
AutoGenerateColumns="False"
AllowPullToRefresh="False"
VerticalOverScrollMode="None"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand"
SelectionMode="Single"
ColumnSizer="Star"
HeaderRowHeight="{StaticResource ReportDataGridHeaderRowHeight}"
RowHeight="{StaticResource ReportDataGridRowHeight}">
<sfDataGrid:SfDataGrid.Columns x:TypeArguments="syncfusion:Columns">
<sfDataGrid:GridTextColumn
HeaderText="Order"
MappingName="Name"
HeaderCellTextSize="{StaticResource DataGridHeaderCellTextSize}"
CellTextSize="{StaticResource DataGridCellTextSize}"
HeaderTextAlignment="End"
TextAlignment="End"
Padding="0,0,10,0">
</sfDataGrid:GridTextColumn>
<sfDataGrid:GridTextColumn
HeaderText="Today"
MappingName="TodayCountFormat"
HeaderCellTextSize="{StaticResource DataGridHeaderCellTextSize}"
CellTextSize="{StaticResource DataGridCellTextSize}"
HeaderTextAlignment="Start"
TextAlignment="Start"
Padding="10,0,0,0">
</sfDataGrid:GridTextColumn>
<sfDataGrid:GridTextColumn
HeaderText="Yesterday"
MappingName="YesterdayCountFormat"
HeaderCellTextSize="{StaticResource DataGridHeaderCellTextSize}"
CellTextSize="{StaticResource DataGridCellTextSize}"
HeaderTextAlignment="Start"
TextAlignment="Start"
Padding="10,0,0,0">
</sfDataGrid:GridTextColumn>
<sfDataGrid:GridTextColumn
HeaderText="Anteayer"
MappingName="BeforeYesterdayCountFormat"
HeaderCellTextSize="{StaticResource DataGridHeaderCellTextSize}"
CellTextSize="{StaticResource DataGridCellTextSize}"
HeaderTextAlignment="Start"
TextAlignment="Start"
Padding="10,0,0,0">
</sfDataGrid:GridTextColumn>
<sfDataGrid:GridTextColumn
HeaderText="LastWeekToday"
MappingName="SameDayLastWeekCountFormat"
HeaderCellTextSize="{StaticResource DataGridHeaderCellTextSize}"
CellTextSize="{StaticResource DataGridCellTextSize}"
HeaderTextAlignment="Start"
TextAlignment="Start"
Padding="10,0,0,0">
</sfDataGrid:GridTextColumn>
</sfDataGrid:SfDataGrid.Columns>
</sfDataGrid:SfDataGrid>
</StackLayout>
</StackLayout>
…. public MainPage() {
InitializeComponent();
BindingContext = viewModel = new MainPageViewModel();
this.datagrid2.GridLoaded += Datagrid2_GridLoaded;
}
private void Datagrid2_GridLoaded(object sender, Syncfusion.SfDataGrid.XForms.GridLoadedEventArgs e)
{
this.datagrid2.Columns[2].Width = this.datagrid2.Columns[2].ActualWidth - 0.2;
} |
Hi Andy,
Thanks for the update. This issue occurs because of screen resolution, So could
you please check by changing the screen resolution of the device and let us know
the details?.
Regards,
Karthik Raja