Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Onscroll data loading in datagrid of mytoolkit in uwp #63

Closed
govindrawat55 opened this issue Jun 14, 2016 · 2 comments
Closed

Onscroll data loading in datagrid of mytoolkit in uwp #63

govindrawat55 opened this issue Jun 14, 2016 · 2 comments

Comments

@govindrawat55
Copy link

I want to do virtualization in my toolkit grid.
I want to show only 10 records first time then after scroll it load next 10 records.

@govindrawat55
Copy link
Author

govindrawat55 commented Jun 18, 2016

<ScrollViewer x:Name="sv" Margin="20,280,20,0" HorizontalScrollBarVisibility="Auto" RelativePanel.AlignRightWithPanel="True" RelativePanel.AlignLeftWithPanel="True" ViewChanged="ScrollViewer_ViewChanged"> <Toolkit:DataGrid x:Name="DoGrid" Grid.Row="1" ItemsSource="{Binding Product}" SelectionMode="Single" SelectedItem="{Binding SelectedPerson, Mode=TwoWay}" DefaultOrderIndex="1" Height="Auto" HeaderBackground="#FF094AB2" Foreground="White" RowBackgroundEvenBrush="#FFB3C6E7" RowBackgroundOddBrush="#FFD9E2F3" FontSize="14" RelativePanel.AlignLeftWithPanel="True" RelativePanel.AlignRightWithPanel="True" Margin="0"> <Toolkit:DataGrid.Columns> <Toolkit:DataGridTemplatedColumn Width="100" CanSort="False"> <Toolkit:DataGridTemplatedColumn.Header> <CheckBox x:Name="OptionsAllCheckBox" IsThreeState="True" Checked="SelectAll_Checked" Unchecked="SelectAll_Unchecked" Indeterminate="SelectAll_Indeterminate"/> </Toolkit:DataGridTemplatedColumn.Header> <Toolkit:DataGridTemplatedColumn.CellTemplate> <DataTemplate> <CheckBox IsChecked="{Binding Checked, Mode=TwoWay}" Checked="Option_Checked" Unchecked="Option_Unchecked" /> </DataTemplate> </Toolkit:DataGridTemplatedColumn.CellTemplate> </Toolkit:DataGridTemplatedColumn> <Toolkit:DataGridTextColumn Width="200" Header="number" Binding="{Binding Number}" /> <Toolkit:DataGridTextColumn Width="300" Header="Description" Binding="{Binding Description}" /> </Toolkit:DataGrid.Columns> </Toolkit:DataGrid> </ScrollViewer>

@patilketan888
Copy link

would you please share your code behind for select all check box.

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

No branches or pull requests

2 participants