Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Datagrid scrolling inside TabbedPage #67

Open
anovik opened this issue Feb 5, 2018 · 0 comments
Open

Datagrid scrolling inside TabbedPage #67

anovik opened this issue Feb 5, 2018 · 0 comments

Comments

@anovik
Copy link

anovik commented Feb 5, 2018

I've got TabbedPage with several tabs with DataGrids on each of them. Running on Android.

<TabbedPage>
    <ContentPage Title="Content Page with Grid">
        <Grid>
            <Grid.RowDefinitions>
                 <RowDefinition Height="Auto"/>
                 <RowDefinition Height="*"/>
           </Grid.RowDefinitions>
           <Button Grid.Row="0" x:Name="AddButton" Text="Add" "></Button>
           <dg:DataGrid Grid.Row="1" x:Name="Grid" ItemsSource="{Binding Items}"
       </Grid>
     </ContentPage>
    <ContentPage Title="Another Content Page with Grid">
        ...
    </ContentPage>
</TabbedPage>

Vertical scrolling is basically works but horizontal is not. By default it is just moving from one tab to another when I try to scroll the grid. I disabled scrolling between tabs:

Xamarin.Forms.PlatformConfiguration.AndroidSpecific.TabbedPage.SetIsSwipePagingEnabled(this, false);

But now I can't scroll my grid horizontally at all - only vertically. What is the correct solution? We discussed with you previously that I can't use ScrollView together with DataGrid and really the performance is awful if I try to do that. Please advise.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant