I'm currently evaluation NetAdvantage for WPF. I created a little test application which uses a xamDockManager to implement a tabbed user interface. At the moment I have two tabs: an empty one and one with a xamDataGrid which displays data from an SQL Server database.
Unfortunately switching from the empty tab to the tab containing the xamDataGrid takes around 2 seconds, which is rather slow. I reduced the number of rows in the grid from 1700 to 50 and the columns from 30 to 15, but this had no effect on the speed of changing tabs. If I reduce the number of rows to 0, switching between the tabs is rather fast. So it seem's that drawing the xamDataGrid makes things slow.
Any idea what the problem could be? How can I improve the speed of switching tabs?
Best Regards
Markus
<igDock:ContentPane Name="contentPane1" TabHeader="Pane 1" AllowFloatingOnly="True" AllowPinning="True" >
<Grid Name="MainContentGrid">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="60" />
</Grid.RowDefinitions>
BindToSampleData="False" Theme="Office2k7Blue" RecordActivated="xamMainDataGrid_RecordActivated"
IsNestedDataDisplayEnabled="False" RecordLoadMode="LoadOnDemand" RecordContainerGenerationMode="Recycle"
UpdateMode="OnUpdate">
</igDP:XamDataGrid>
<Grid Name="DetailsGrid" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition />
</Grid.ColumnDefinitions>
<RowDefinition></RowDefinition>
<igRibbon:LabelTool Name="LabelManufacturer" Caption="Manufacturer:" HorizontalAlignment="Right" Grid.Row="0" Grid.Column="0"/>
<igEditors:XamTextEditor Name="xamTextEditorManufacturer" Grid.Row="0" Grid.Column="1" Theme="Office2k7Blue">
</igEditors:XamTextEditor>
<igRibbon:LabelTool Name="LabelManPartNo" Caption="Manufacturer PartNo:" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="0"/>
<igEditors:XamTextEditor Name="xamTextEditorManPartNo" Grid.Row="1" Grid.Column="1" Theme="Office2k7Blue">
<igRibbon:LabelTool Name="LabelDatasheet" Caption="Datasheet:" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="0"/>
<igEditors:XamTextEditor Name="xamTextEditorDatesheet" Grid.Row="2" Grid.Column="1" Theme="Office2k7Blue">
<igRibbon:LabelTool Name="LabelCreatedBy" Caption="Created by:" HorizontalAlignment="Right" Grid.Row="0" Grid.Column="2"/>
<igEditors:XamTextEditor Name="xamTextEditorCreatedBy" Grid.Row="0" Grid.Column="3" Theme="Office2k7Blue">
<igRibbon:LabelTool Name="LabelCreationDate" Caption="Creation date:" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="2"/>
<igEditors:XamTextEditor Name="xamTextEditorCreationDate" Grid.Row="1" Grid.Column="3" Theme="Office2k7Blue">
</Grid>
</igDock:ContentPane>
Hi Andrew
Thanks a lot. That was exactly the problem! After removing the Theme property, the DataGrid draws very fast! Unfortunately I had to set the Theme property because the default colors of the different controls do not really fit together. While the default color of my ribbon is light blue, the color of the grid is black. Therefore I started to set the Theme property.
Anyway, if the problem with the theme property is fixed in the newest version, it's no longer an issue for me.
Thanks again
There was an issue like the one you described relating to having the Theme property set that has been addressed in the latest hotfix (as well as in the latest release version 8.2) although I'm not sure if the hotfix is publicly available. You may want to contact the support group to find out when the hotfix will be available.