I have a tabbed UI which uses XamDockManager and a TabGroupPane, in which new ContentPanes are "dynamically" loaded.
The Tabs includes a xamDataGrid which is then bound to a DataSet/DataTable. In my DataTable I have only about 20 records, but the grid takes 3 seconds to appear. I did some simple profiling to find out where most time is lost (see below).
All my methods and event handlers seem to be pretty fast. There is a time gap of 2.5 seconds I don't know where those are spent. The gap occurs after the FieldLayoutInitialized event handler was called.
Has anybody any idea what the problem could be and how I could further investigate the issue?
Markus
Profiling Data (in the brackets you see the start and the end time of the method/event handler)
-------------------------------------------------------------------------------------------------------------------------------
MainScreen::tabGroupPane1_SelectionChanged(START): 08:50:06.9MainScreen::tabGroupPane1_SelectionChanged(STOP): 9761 Ticks (08:50:06.9, 08:50:06.901)BaseContentControl::xamMainDataGrid_FieldLayoutInitializing(START): 08:50:06.989BaseContentControl::xamMainDataGrid_FieldLayoutInitializing(STOP): 9761 Ticks (08:50:06.989, 08:50:06.99)BaseContentControl::xamMainDataGrid_FieldLayoutInitialized(START): 08:50:07.048BaseContentControl::xamMainDataGrid_FieldLayoutInitialized(STOP): 0 Ticks (08:50:07.048, 08:50:07.048)??? WHAT HAPPENS HERE IN THESE 2.5 SECONDS ???MainScreen::DocumentContentHost_ActiveDocumentChanged(START): 08:50:09.568BaseContentControl::CreateLayoutsItemProvider(START): 08:50:09.572BaseContentControl::CreateLayoutsItemProvider(STOP): 214742 Ticks (08:50:09.572, 08:50:09.594)BaseContentControl::OnCurrentLayoutChanged(START): 08:50:09.614BaseContentControl::OnCurrentLayoutChanged(STOP): 0 Ticks (08:50:09.614, 08:50:09.614)MainScreen::DocumentContentHost_ActiveDocumentChanged(STOP): 468528 Ticks (08:50:09.568, 08:50:09.615)MainScreen::xamDockManagerMain_ActivePaneChanged(START): 08:50:09.617MainScreen::xamDockManagerMain_ActivePaneChanged(STOP): 0 Ticks (08:50:09.617, 08:50:09.617)BaseContentControl::BaseContentCtrl_Loaded(START): 08:50:09.642BaseContentControl::ApplyColumnProperties(START): 08:50:09.646BaseContentControl::ApplyColumnProperties(STOP): 312352 Ticks (08:50:09.646, 08:50:09.677)BaseContentControl::BaseContentCtrl_Loaded(STOP): 361157 Ticks (08:50:09.642, 08:50:09.678)
Hello Markus,
Thank you for your post. I apologize for the late reply, but please note we are making efforts to ensure all posts are addressed by an Infragistics expert. I have been reading through your description and frankly I haven’t encountered any such issue with a small data source like yours. We have made some performance improvements since 2010, however they shouldn’t be necessary. When I test this I get a result of about 600 milliseconds, so I was wondering if you please let me have a look at your sample in order to try and spot anything else that could affect the performance.
I have also attached the test sample I used (Grid_in_TabControl.zip) for your reference. Please let me know if this is still an issue for you.
Sincerely,
Petar, MCTS
Developer Support Engineer II
Infragistics
www.infragistics.com/support