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

Adding Control.DataVisualization to App.xaml uses enormous amounts of RAM on View creation

2 Answers 31 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 05 Dec 2019, 04:00 PM

I have a problem trying to use another Telerik component (-> RadTimeBar) which leads to a not loading application with a lot of memory consumption. I am using NoXaml assemblies so I figured I have to add DataVisualization to the App.xaml ResourceDictionary in order to see the control (because it is "invisible" so far). As soon as I add Control.DataVisualization to the App.xaml ResourceDictionary the application is no longer starting properly. It tries to initialize the first visible "start page" called TuggersView.xaml which uses a Telerik RadGridView. However the View initialization call never returns and meanwhile the application uses above 4GB of RAM before I kill the process. Running in debug the application usually consumes around 400 to 500 MB when loaded completely.

 

Have you ever encountered this kind of behaviour?

 

App.xaml Ok:

<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/System.Windows.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Chart.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Data.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Diagrams.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.GridView.xaml" /
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Input.xaml" />

 

App.xaml issue:

<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/System.Windows.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Chart.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Data.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.DataVisualization.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Diagrams.xaml" />
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.GridView.xaml" /
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8Touch;component/Themes/Telerik.Windows.Controls.Input.xaml" />

2 Answers, 1 is accepted

Sort by
0
Andy
Top achievements
Rank 1
answered on 09 Dec 2019, 12:54 PM
You can scratch the question. It seems to be related to the RadTimeBar.Intervals and not with the RadGridView.
0
Vladimir Stoyanov
Telerik team
answered on 10 Dec 2019, 09:22 AM

Hello Andy,

Based on your last reply, I am assuming that you managed to find the cause of the described behavior. 

On a side note, when merging the resource dictionaries, you can bear in mind that some of them depend on others and the order is important. You can find more information about that here: Control Styles Dependencies.

Regards,
Vladimir Stoyanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Andy
Top achievements
Rank 1
Answers by
Andy
Top achievements
Rank 1
Vladimir Stoyanov
Telerik team
Share this question
or