Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1080
Changing to tab containing xamDataGrid very slow
posted

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>

<igDP:XamDataGrid HorizontalAlignment="Stretch" Name="xamMainDataGrid" VerticalAlignment="Stretch" Grid.Row="0"

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 />

<ColumnDefinition />

<ColumnDefinition />

<ColumnDefinition />

</Grid.ColumnDefinitions>

<Grid.RowDefinitions>

<RowDefinition></RowDefinition>

<RowDefinition></RowDefinition>

<RowDefinition></RowDefinition>

</Grid.RowDefinitions>

 

<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">

</igEditors:XamTextEditor>

<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">

</igEditors:XamTextEditor>

<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">

</igEditors:XamTextEditor>

<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">

</igEditors:XamTextEditor>

</Grid>

</Grid>

 

</igDock:ContentPane>