This is a migrated thread and some comments may be shown as answers.

Increase memory when selectionchanged RadTagItem

5 Answers 88 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Lee asked on 06 Mar 2015, 10:22 AM
Hi, I'm HeeJun Lee.

My program is using 'RadTabControl'.

To behaving selection of RadTabItem, program have more memory.

When behaving with only code, memory is not increase.

What should I do??

Below my .XAML code source part.

//------------------------------------------------------------------------------------------------------------------------------

<telerik:RadTabControl VerticalAlignment="Stretch" DisplayMemberPath="Content" ScrollMode="Viewport" SelectedIndex="{Binding TagManager.TabIndex}" IsEnabled="{Binding TagManager.SelectionBusy}">
                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="SelectionChanged">
                        <i:InvokeCommandAction Command="{Binding TagManager.SelectionCommand}"
                                               CommandParameter="{Binding Path=SelectedItem, RelativeSource={RelativeSource AncestorType={x:Type telerik:RadTabControl}}}"/>
                    </i:EventTrigger>
                </i:Interaction.Triggers>                <telerik:RadTabItem Header="A" Width="80">
                    <view:StatusView />
                </telerik:RadTabItem>                <telerik:RadTabItem Header="B" Width="80">
                    <view:StatusView />
                </telerik:RadTabItem>                <telerik:RadTabItem Header="C" Width="80">
                    <view:AnalogView />
                </telerik:RadTabItem>                <telerik:RadTabItem Header="D" Width="80">
                    <view:AnalogView />
                </telerik:RadTabItem>                <telerik:RadTabItem Header="E" Width="80">
                    <view:AnalogView />
                </telerik:RadTabItem>                <telerik:RadTabItem Header="F" Width="80">
                    <view:CountView />
                </telerik:RadTabItem>                <telerik:RadTabItem Header="G" Width="80">
                    <view:CountView />
                </telerik:RadTabItem>                <telerik:RadTabItem Header="H" Width="80">
                    <view:CountView />
                </telerik:RadTabItem>
            </telerik:RadTabControl>

//------------------------------------------------------------------------------------------------------------------------------

5 Answers, 1 is accepted

Sort by
0
Lee
Top achievements
Rank 1
answered on 06 Mar 2015, 10:24 AM
Additionally, I think about that.

When data binding, occure the problem.
0
Pavel R. Pavlov
Telerik team
answered on 10 Mar 2015, 03:40 PM
Hi HeeJun Lee,

I would really like to assist you on your way but the problem is that I cannot understand you. Could you please clarify what you have in mind when saying:"To behaving selection of RadTabItem, program have more memory. When behaving with only code, memory is not increase."

Are you referring to the physical memory that your application takes or you refer to the loading time? Also I could not understand what you need to say with your second post: "When data binding, occure the problem." Please elaborate more on that matter.

If it would be easier for you, please reproduce the issue in a small repro project and send it over along with steps which reproduce the reported behavior. This will better help us to understand your scenario.

Regards,
Pavel R. Pavlov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Joel
Top achievements
Rank 1
Iron
answered on 18 Jun 2015, 02:10 AM

Was it related to http://www.telerik.com/forums/radtabcontrol-memory-leaks-16fe6d2507ee? Has that been resolved?

 I am starting to dig into my codes to see how i can contain the ever increasing memory usage everytime a new Tab Item is added. Just need to ensure that it has nothing to do with RadTabControl

0
Kiril Vandov
Telerik team
answered on 18 Jun 2015, 10:56 AM
Hello Joel Nathanael,

The issue that you are referring has been fixed and currently there are no known memory leak issue with the RadTabControl. I am not sure what is your exact scenario and project set up but if you think that there is problem with the RadTabControl please do not hesitate to contact us. If you do I would suggest you to open a new thread and explain the problem that you are having there in detail. Doing so will help us better organize and track separate issues and provide each issue with the best possible solution.

I hope this information helps.

Kind regards,
Kiril Vandov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Joel
Top achievements
Rank 1
Iron
answered on 19 Jun 2015, 12:22 AM

Hi Pavel,

  Indeed the RadTabControl is free from memory leak issue. I have stripped off all user controls & stress test it by adding & removing the tab item repeatedly. It is working perfectly.

  I will create a new thread once i can identify where the leaks happens.... and i am closing in to the PanesSource binding of RadDocking

Tags
TabControl
Asked by
Lee
Top achievements
Rank 1
Answers by
Lee
Top achievements
Rank 1
Pavel R. Pavlov
Telerik team
Joel
Top achievements
Rank 1
Iron
Kiril Vandov
Telerik team
Share this question
or