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
xamDataGrid takes 3 Seconds to display 20 Rows
posted

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.9
MainScreen::tabGroupPane1_SelectionChanged(STOP): 9761 Ticks (08:50:06.9, 08:50:06.901)
BaseContentControl::xamMainDataGrid_FieldLayoutInitializing(START): 08:50:06.989
BaseContentControl::xamMainDataGrid_FieldLayoutInitializing(STOP): 9761 Ticks (08:50:06.989, 08:50:06.99)
BaseContentControl::xamMainDataGrid_FieldLayoutInitialized(START): 08:50:07.048
BaseContentControl::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.568
BaseContentControl::CreateLayoutsItemProvider(START): 08:50:09.572
BaseContentControl::CreateLayoutsItemProvider(STOP): 214742 Ticks (08:50:09.572, 08:50:09.594)
BaseContentControl::OnCurrentLayoutChanged(START): 08:50:09.614
BaseContentControl::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.617
MainScreen::xamDockManagerMain_ActivePaneChanged(STOP): 0 Ticks (08:50:09.617, 08:50:09.617)
BaseContentControl::BaseContentCtrl_Loaded(START): 08:50:09.642
BaseContentControl::ApplyColumnProperties(START): 08:50:09.646
BaseContentControl::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)

 

 

 

  • 27093
    posted

    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

     

    Grid_in_TabControl.zip