We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Is there a Bug in SfTabControl?

Thread ID:

Created:

Updated:

Platform:

Replies:

121924 Feb 9,2016 07:48 AM Feb 23,2016 06:06 AM UWP 3
loading
Tags: SfTabControl
Alexander Sobotta
Asked On February 9, 2016 07:48 AM

Hello,

I have a table with many columns, so I used SfTabControl to switch between SfDataGrids (all binded to the same Collection) with different ColumnMappings.
If I put the Grids inside the Content of a SfTabItem like:

<SfTabControl>
     <SfTabItem>
          <SfDataGrid/>
     </SfTabItem>
</SdTabControl>

If I do it like that, the Application is very slow and unusable.

If I put the SfDataGrids outside of the TabControl and use the "SelectionChanged" Event to make the GSfDataGrids visible or collapsed, so i only see
the SfDataGrid wich is selected, the performance increases very much. 

Why is that? What is happening with the Objects inside of an SfTabItem that it's such slow?

Regards`

Victory Jessie Selvam D [Syncfusion]
Replied On February 10, 2016 06:21 AM

Hi Alexandar,

Thank you for using Syncfusion products.

While switching between tab items, our SfTabControl will unload the old content and load the new content in content presenter. This may take some time if the content to be loaded deals with huge amount of data. We have prepared a sample to demonstrate the same and you can download it from the following link:

Sample: TabControl

Regards,
Jessie

Alexander Sobotta
Replied On February 22, 2016 04:47 AM

Thank you for your reply. 
You said the old content will be unloaded, but the memory usage is increasing when I'm switching between the tabs. 
It's like the content of a tab is loading everytime when opened, but the old item memory is not freed.
Currently I'm using it to switch the DataGrids visible and collapsed, but this is only a workaround. 
I could use normal buttons for that, the way I'm using the TabControl is only for the look.
Is there a way to toggle the memory behavior of the TabControl? 

Regards 

Victory Jessie Selvam D [Syncfusion]
Replied On February 23, 2016 06:06 AM

Hi Alexander,

While switching tabs, old content is unloaded from view but it will exist in memory. Because older content has to be displayed when we switch back to that item again. So it is maintained in memory instead of freeing it from memory.

Regards,
Jessie

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;