Hi,
I understand that we could disable virtualization in xamgrid by setting the panel size property etc link http://help.infragistics.com/Help/NetAdvantage/WPF/2012.1/CLR4.0/html/xamGrid_Virtualization.html
But if i do as above I cannot see the scrollbars (see attached sample), can we not disable virtualization via property instead as setting the size etc breaks the look and feel on the UI?
The panel where i host the grid needs to be collpased/resized and controls so this is a big show stopper for me.
Thanks,
Rohit
The way i have fixed it is by subscribing to scrollviewer size changed and then changing grid size, it works and perf is not bad, but i hope there was a better way to turn off virtualization instead of playing with the size etc
Hello Rohit,
I have been looking into your question and currently the best approaches for disabling the virtualization of the XamGrid are suggested in the referred link from our online documentation. It is great that you have managed to solve your main issue with the scrollbar. I can suggest you use a Grid panel instead of StackPanel like e.g. :
<Grid x:Name="grid" >
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition />
</Grid.RowDefinitions>
<Button Width="100" Grid.Row="0" Height="50" Content="Add Items" Click="ButtonBase_OnClick"></Button>
<Button Width="100" Grid.Row="1" Height="50" Content="Apply Layout" Click="ApplyLayout"></Button>
<Button Width="100" Grid.Row="2" Height="50" Content="Begin Add" Click="BeginTimer"></Button>
<ScrollViewer Grid.Row="3" x:Name="scrollViewer" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" CanContentScroll="True">
<ig:XamGrid x:Name="xamGrid" AutoGenerateColumns="False" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"></ig:XamGrid>
</ScrollViewer>
</Grid>
Let me know, if you need any further assistance on this matter.