Hi Mitch,
Greetings from Syncfusion.
We have analyzed your requirement and we have prepared a sample based on this. We have implemented the SfRotator’s ItemTemplate with SfDataGrid and displayed the same data that bound with view as per the below code snippet.
In this sample, we have done the following things,
1. Added SfDataGrid as an ItemTemplate in Rotator and also set binding for the Rotator and DataGrid ItemsSource. Please refer below code snippet for this
<ContentPage.BindingContext> <local:OrderInfoRepository /> </ContentPage.BindingContext> <ContentPage.Content> <StackLayout> <Button x:Name="Add" Clicked="Add_Clicked" Text="Add" HorizontalOptions="Center" VerticalOptions="Center" /> <rotator:SfRotator x:Name="rotator" ItemsSource="{Binding RotatorCollection,Mode=TwoWay }" NavigationDirection="Horizontal" NavigationStripMode="Thumbnail" NavigationStripPosition="Bottom"> <rotator:SfRotator.ItemTemplate> <DataTemplate> <dataGrid:SfDataGrid ItemsSource="{Binding OrderInfoCollection,Mode=TwoWay}" /> </DataTemplate> </rotator:SfRotator.ItemTemplate> </rotator:SfRotator> </StackLayout> </ContentPage.Content> |
2. Added the button click to change the Rotator Items and data of SfDataGrid dynamically.
Please refer the below screenshot for this
We request you to try our sample, if this is not your requirement please get back to us with further details.
Thanks,
Muneesh Kumar G.